Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace GeneaLabs\LaravelCaffeine\Tests\Feature; |
||
15 | public function testMiddlewareInjectsDripScript() |
||
16 | { |
||
17 | // dd(\Route::getRoutes()); |
||
18 | $expectedResult = "<script>setInterval(function(){var e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject('Microsoft.XMLHTTP');e.open('GET','/genealabs/laravel-caffeine/drip',!0);e.setRequestHeader('X-Requested-With','XMLHttpRequest');e.send();}, 300000);</script>"; |
||
19 | |||
20 | $response = $this->get(route('genealabs-laravel-caffeine.tests.form')); |
||
21 | |||
22 | $response->assertSee($expectedResult); |
||
23 | } |
||
25 |