$this->
drupalGet('test-meta-refresh'
);
$this->
assertNotEmpty($this->
cssSelect('meta[http-equiv="refresh"]'
));
// Allow one redirect to happen.
$this->maximumMetaRefreshCount = 1;
$this->
checkForMetaRefresh();
// Check that we are now on the test page.
$this->
assertSession()->
pageTextContains('Test page text.'
);
} public function testGetDefaultDriveInstance() { putenv('MINK_DRIVER_ARGS=' .
json_encode([NULL,
['key1' =>
['key2' =>
['key3' => 3, 'key3.1' => 3.1
]]]]));
$this->
getDefaultDriverInstance();
$this->
assertEquals([NULL,
['key1' =>
['key2' =>
['key3' => 3, 'key3.1' => 3.1
]]]],
$this->minkDefaultDriverArgs
);
} /**
* Ensures we can't access modules we shouldn't be able to after install.
*/
public function testProfileModules() { $this->
expectException(\InvalidArgumentException::
class);
$this->
expectExceptionMessage('The module demo_umami_content does not exist.'
);
$this->
assertFileExists('core/profiles/demo_umami/modules/demo_umami_content/demo_umami_content.info.yml'
);
\Drupal::
service('extension.list.module'
)->
getPathname('demo_umami_content'
);
}