@@ -436,19 +436,19 @@ class LibrariesWebTest extends BrowserTestBase {
...
@@ -436,19 +436,19 @@ class LibrariesWebTest extends BrowserTestBase {
// When the library information is not cached, all callback groups should be
// When the library information is not cached, all callback groups should be
// invoked.
// invoked.
$this->drupalGet('libraries_test/cache');
$this->drupalGet('libraries_test/cache');
$this->assertRaw('The <em>info</em> callback group was invoked.','Info callback invoked for uncached libraries.');
$this->assertSession()->responseContains('The <em>info</em> callback group was invoked.','Info callback invoked for uncached libraries.');
$this->assertRaw('The <em>pre-detect</em> callback group was invoked.','Pre-detect callback invoked for uncached libraries.');
$this->assertSession()->responseContains('The <em>pre-detect</em> callback group was invoked.','Pre-detect callback invoked for uncached libraries.');
$this->assertRaw('The <em>post-detect</em> callback group was invoked.','Post-detect callback invoked for uncached libraries.');
$this->assertSession()->responseContains('The <em>post-detect</em> callback group was invoked.','Post-detect callback invoked for uncached libraries.');
$this->assertRaw('The <em>pre-load</em> callback group was invoked.','Pre-load callback invoked for uncached libraries.');
$this->assertSession()->responseContains('The <em>pre-load</em> callback group was invoked.','Pre-load callback invoked for uncached libraries.');
$this->assertRaw('The <em>post-load</em> callback group was invoked.','Post-load callback invoked for uncached libraries.');
$this->assertSession()->responseContains('The <em>post-load</em> callback group was invoked.','Post-load callback invoked for uncached libraries.');
// When the library information is cached only the 'pre-load' and
// When the library information is cached only the 'pre-load' and
// 'post-load' callback groups should be invoked.
// 'post-load' callback groups should be invoked.
$this->drupalGet('libraries_test/cache');
$this->drupalGet('libraries_test/cache');
$this->assertNoRaw('The <em>info</em> callback group was not invoked.','Info callback not invoked for cached libraries.');
$this->assertSession()->responseNotContains('The <em>info</em> callback group was not invoked.','Info callback not invoked for cached libraries.');
$this->assertNoRaw('The <em>pre-detect</em> callback group was not invoked.','Pre-detect callback not invoked for cached libraries.');
$this->assertSession()->responseNotContains('The <em>pre-detect</em> callback group was not invoked.','Pre-detect callback not invoked for cached libraries.');
$this->assertNoRaw('The <em>post-detect</em> callback group was not invoked.','Post-detect callback not invoked for cached libraries.');
$this->assertSession()->responseNotContains('The <em>post-detect</em> callback group was not invoked.','Post-detect callback not invoked for cached libraries.');
$this->assertRaw('The <em>pre-load</em> callback group was invoked.','Pre-load callback invoked for cached libraries.');
$this->assertSession()->responseContains('The <em>pre-load</em> callback group was invoked.','Pre-load callback invoked for cached libraries.');
$this->assertRaw('The <em>post-load</em> callback group was invoked.','Post-load callback invoked for cached libraries.');
$this->assertSession()->responseContains('The <em>post-load</em> callback group was invoked.','Post-load callback invoked for cached libraries.');
$this->verbose("Strings of HTML that are expected to be present:{$html_expected}Strings of HTML that are expected to not be present:{$html_not_expected}");
dump("Strings of HTML that are expected to be present:{$html_expected}Strings of HTML that are expected to not be present:{$html_not_expected}");