mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
AssertLegacyTrait::assertResponse() is deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->statusCodeEquals() instead. See https://www.drupal.org/node/3129738
This commit is contained in:
parent
ae0bd6e432
commit
09083d4e65
|
@ -24,8 +24,8 @@ class AssetCRUDTest extends AssetTestBase {
|
|||
*/
|
||||
public function testFieldsVisibility() {
|
||||
$this->drupalGet('asset/add/default');
|
||||
$this->assertResponse('200');
|
||||
$assert_session = $this->assertSession();
|
||||
$assert_session->statusCodeEquals(200);
|
||||
$assert_session->fieldExists('name[0][value]');
|
||||
$assert_session->fieldExists('status');
|
||||
$assert_session->fieldExists('revision_log_message[0][value]');
|
||||
|
@ -72,7 +72,7 @@ class AssetCRUDTest extends AssetTestBase {
|
|||
$asset->save();
|
||||
|
||||
$this->drupalGet($asset->toUrl('canonical'));
|
||||
$this->assertResponse(200);
|
||||
$this->assertSession()->statusCodeEquals(200);
|
||||
|
||||
$this->assertText($edit['name']);
|
||||
$this->assertRaw(\Drupal::service('date.formatter')->format(\Drupal::time()->getRequestTime()));
|
||||
|
|
|
@ -42,7 +42,7 @@ class DashboardTest extends FarmBrowserTestBase {
|
|||
*/
|
||||
public function testDashboardBlock() {
|
||||
$this->drupalGet('/dashboard');
|
||||
$this->assertResponse(200);
|
||||
$this->assertSession()->statusCodeEquals(200);
|
||||
|
||||
// Assert that the test block was added.
|
||||
$this->assertSession()->pageTextContains('Dashboard test block label');
|
||||
|
@ -54,7 +54,7 @@ class DashboardTest extends FarmBrowserTestBase {
|
|||
*/
|
||||
public function testDashboardView() {
|
||||
$this->drupalGet('/dashboard');
|
||||
$this->assertResponse(200);
|
||||
$this->assertSession()->statusCodeEquals(200);
|
||||
|
||||
// Assert that the test view was not added to the dashboard.
|
||||
$this->assertSession()->pageTextNotContains('User list');
|
||||
|
@ -64,7 +64,7 @@ class DashboardTest extends FarmBrowserTestBase {
|
|||
$this->drupalLogin($user);
|
||||
|
||||
$this->drupalGet('/dashboard');
|
||||
$this->assertResponse(200);
|
||||
$this->assertSession()->statusCodeEquals(200);
|
||||
|
||||
// Assert that the test view was added to the dashboard.
|
||||
$this->assertSession()->pageTextContains('User list');
|
||||
|
|
|
@ -70,7 +70,7 @@ class DashboardTasksTest extends FarmBrowserTestBase {
|
|||
*/
|
||||
public function testUpcomingTasks() {
|
||||
$this->drupalGet('/dashboard');
|
||||
$this->assertResponse(200);
|
||||
$this->assertSession()->statusCodeEquals(200);
|
||||
|
||||
// Assert that the upcoming tasks view was not added.
|
||||
$this->assertSession()->pageTextNotContains('Upcoming tasks');
|
||||
|
@ -81,7 +81,7 @@ class DashboardTasksTest extends FarmBrowserTestBase {
|
|||
|
||||
// Assert that the upcoming tasks view is added.
|
||||
$this->drupalGet('/dashboard');
|
||||
$this->assertResponse(200);
|
||||
$this->assertSession()->statusCodeEquals(200);
|
||||
$this->assertSession()->pageTextContains('Upcoming tasks');
|
||||
|
||||
// Assert that the log is not displayed.
|
||||
|
@ -94,7 +94,7 @@ class DashboardTasksTest extends FarmBrowserTestBase {
|
|||
|
||||
// Assert that the upcoming tasks view is added.
|
||||
$this->drupalGet('/dashboard');
|
||||
$this->assertResponse(200);
|
||||
$this->assertSession()->statusCodeEquals(200);
|
||||
$this->assertSession()->pageTextContains('Upcoming tasks');
|
||||
|
||||
// Assert that the log is displayed.
|
||||
|
@ -106,7 +106,7 @@ class DashboardTasksTest extends FarmBrowserTestBase {
|
|||
*/
|
||||
public function testLateTasks() {
|
||||
$this->drupalGet('/dashboard');
|
||||
$this->assertResponse(200);
|
||||
$this->assertSession()->statusCodeEquals(200);
|
||||
|
||||
// Assert that the upcoming tasks view was not added.
|
||||
$this->assertSession()->pageTextNotContains('Late tasks');
|
||||
|
@ -117,7 +117,7 @@ class DashboardTasksTest extends FarmBrowserTestBase {
|
|||
|
||||
// Assert that the upcoming tasks view is added.
|
||||
$this->drupalGet('/dashboard');
|
||||
$this->assertResponse(200);
|
||||
$this->assertSession()->statusCodeEquals(200);
|
||||
$this->assertSession()->pageTextContains('Late tasks');
|
||||
|
||||
// Assert that the log is not displayed.
|
||||
|
@ -130,7 +130,7 @@ class DashboardTasksTest extends FarmBrowserTestBase {
|
|||
|
||||
// Assert that the upcoming tasks view is added.
|
||||
$this->drupalGet('/dashboard');
|
||||
$this->assertResponse(200);
|
||||
$this->assertSession()->statusCodeEquals(200);
|
||||
$this->assertSession()->pageTextContains('Late tasks');
|
||||
|
||||
// Assert that the log is displayed.
|
||||
|
|
Loading…
Reference in a new issue