Skip to content

Commit a8b6f66

Browse files
authored
Merge pull request #482 from carusogabriel/refactoring-tests
Use assertContains
2 parents fb837be + 3d9f34b commit a8b6f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/NginxTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function test_install_nginx_configuration_places_nginx_base_configuration
2828

2929
$files->shouldReceive('putAsUser')->andReturnUsing(function ($path, $contents) {
3030
$this->assertSame('/usr/local/etc/nginx/nginx.conf', $path);
31-
$this->assertTrue(strpos($contents, 'include '.VALET_HOME_PATH.'/Nginx/*') !== false);
31+
$this->assertContains('include '.VALET_HOME_PATH.'/Nginx/*', $contents);
3232
})->once();
3333

3434
swap(Filesystem::class, $files);

0 commit comments

Comments
 (0)