forked from wallabag/wallabag
Fix deprecated method in tests
This commit is contained in:
@ -13,7 +13,7 @@ class ManageControllerTest extends WallabagCoreTestCase
|
||||
$client->request('GET', '/users/list');
|
||||
|
||||
$this->assertSame(302, $client->getResponse()->getStatusCode());
|
||||
$this->assertContains('login', $client->getResponse()->headers->get('location'));
|
||||
$this->assertStringContainsString('login', $client->getResponse()->headers->get('location'));
|
||||
}
|
||||
|
||||
public function testCompleteScenario()
|
||||
|
||||
@ -57,7 +57,7 @@ TWIG;
|
||||
$this->assertArrayHasKey('test@wallabag.io', $msg->getTo());
|
||||
$this->assertSame(['nobody@test.io' => 'wallabag test'], $msg->getFrom());
|
||||
$this->assertSame('subject', $msg->getSubject());
|
||||
$this->assertContains('text body http://0.0.0.0/support', $msg->toString());
|
||||
$this->assertContains('html body 666666', $msg->toString());
|
||||
$this->assertStringContainsString('text body http://0.0.0.0/support', $msg->toString());
|
||||
$this->assertStringContainsString('html body 666666', $msg->toString());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user