Commit bbf3dcad authored by catch's avatar catch
Browse files

Issue #3139409 by mondrake, nitesh624, ridhimaabrol24, shobhit_juyal, paulocs,...

Issue #3139409 by mondrake, nitesh624, ridhimaabrol24, shobhit_juyal, paulocs, mohrerao, Hardik_Patel_12, ravi.shankar, munish.kumar, longwave, mrinalini9, daffie: Replace usages of AssertLegacyTrait::assertRaw, that is deprecated
parent e13e5590
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ public function testEmptyActionList() {
    $actions = $storage->loadMultiple();
    $storage->delete($actions);
    $this->drupalGet('/admin/config/system/actions');
    $this->assertRaw('There are no actions yet.');
    $this->assertSession()->pageTextContains('There are no actions yet.');
  }

}
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ public function testActionUninstall() {

    $this->drupalGet('admin/people');
    // Ensure we have the user_block_user_action listed.
    $this->assertRaw('<option value="user_block_user_action">Block the selected user(s)</option>');
    $this->assertSession()->responseContains('<option value="user_block_user_action">Block the selected user(s)</option>');

  }

+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ public function testAddFeed() {
    $this->assertSession()->statusCodeEquals(200);
    // Verify that the feed label is present in the page title.
    $this->assertSession()->pageTextContains($feed->label());
    $this->assertRaw($feed->getWebsiteUrl());
    $this->assertSession()->pageTextContains($feed->getWebsiteUrl());

    // Try to add a duplicate.
    $edit = [
+3 −3
Original line number Diff line number Diff line
@@ -41,10 +41,10 @@ public function testRSS091Sample() {
    $this->assertSession()->pageTextContains('First example feed item title');
    $this->assertSession()->linkByHrefExists('http://example.com/example-turns-one');
    $this->assertSession()->pageTextContains('First example feed item description.');
    $this->assertRaw('<img src="http://example.com/images/druplicon.png"');
    $this->assertSession()->responseContains('<img src="http://example.com/images/druplicon.png"');

    // Several additional items that include elements over 255 characters.
    $this->assertRaw("Second example feed item title.");
    $this->assertSession()->pageTextContains("Second example feed item title.");
    $this->assertSession()->pageTextContains('Long link feed item title');
    $this->assertSession()->pageTextContains('Long link feed item description');
    $this->assertSession()->linkByHrefExists('http://example.com/tomorrow/and/tomorrow/and/tomorrow/creeps/in/this/petty/pace/from/day/to/day/to/the/last/syllable/of/recorded/time/and/all/our/yesterdays/have/lighted/fools/the/way/to/dusty/death/out/out/brief/candle/life/is/but/a/walking/shadow/a/poor/player/that/struts/and/frets/his/hour/upon/the/stage/and/is/heard/no/more/it/is/a/tale/told/by/an/idiot/full/of/sound/and/fury/signifying/nothing');
@@ -91,7 +91,7 @@ public function testHtmlEntitiesSample() {
    $feed->refreshItems();
    $this->drupalGet('aggregator/sources/' . $feed->id());
    $this->assertSession()->statusCodeEquals(200);
    $this->assertRaw("Quote&quot; Amp&amp;");
    $this->assertSession()->responseContains("Quote&quot; Amp&amp;");
  }

  /**
+3 −3
Original line number Diff line number Diff line
@@ -253,17 +253,17 @@ public function testControllerNotCalledBeforeAuth() {
    $this->assertSession()->statusCodeEquals(401);
    $this->drupalGet('/basic_auth_test/state/read');
    $this->assertSession()->statusCodeEquals(200);
    $this->assertRaw('nope');
    $this->assertSession()->pageTextContains('nope');

    $account = $this->drupalCreateUser();
    $this->basicAuthGet('/basic_auth_test/state/modify', $account->getAccountName(), $account->pass_raw);
    $this->assertSession()->statusCodeEquals(200);
    $this->assertRaw('Done');
    $this->assertSession()->pageTextContains('Done');

    $this->mink->resetSessions();
    $this->drupalGet('/basic_auth_test/state/read');
    $this->assertSession()->statusCodeEquals(200);
    $this->assertRaw('yep');
    $this->assertSession()->pageTextContains('yep');
  }

}
Loading