diff --git a/tests/Unit/Factory/AccountFactoryTest.php b/tests/Unit/Factory/AccountFactoryTest.php index 490fa1ed42..41f0e95b4e 100644 --- a/tests/Unit/Factory/AccountFactoryTest.php +++ b/tests/Unit/Factory/AccountFactoryTest.php @@ -662,7 +662,7 @@ class AccountFactoryTest extends TestCase try { $factory->create($data); } catch (FireflyException $e) { - $this->assertContains('AccountFactory::create() was unable to find account type #0 ("bla-bla").', $e->getMessage()); + $this->assertStringContainsString('AccountFactory::create() was unable to find account type #0 ("bla-bla").', $e->getMessage()); } }