From c36aa998d55bc2001535cb5bd3c33267af94ab71 Mon Sep 17 00:00:00 2001 From: Propaganistas Date: Wed, 4 Sep 2019 21:12:55 +0200 Subject: [PATCH] Fix PHPUnit method --- tests/Console/UpdateDisposableDomainsCommandTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Console/UpdateDisposableDomainsCommandTest.php b/tests/Console/UpdateDisposableDomainsCommandTest.php index 6fc66b1..68987c7 100644 --- a/tests/Console/UpdateDisposableDomainsCommandTest.php +++ b/tests/Console/UpdateDisposableDomainsCommandTest.php @@ -14,7 +14,7 @@ public function it_creates_the_file() $this->artisan('disposable:update'); $this->assertFileExists($this->storagePath); - $this->assertStringContainsString('yopmail.com', file_get_contents($this->storagePath)); + $this->assertRegexp('/yopmail.com/', file_get_contents($this->storagePath)); } /** @test */ @@ -27,7 +27,7 @@ public function it_overwrites_the_file() $this->assertFileExists($this->storagePath); $contents = file_get_contents($this->storagePath); - $this->assertStringContainsString('yopmail.com', $contents); + $this->assertRegexp('/yopmail.com/', $contents); $this->assertNotEquals('foo', $contents); }