protected function ApigeeEdgeFunctionalTestTrait::clickLinkProperly in Apigee Edge 8
Implements link clicking properly.
The clickLink() function uses Mink, not drupalGet(). This means that certain features (like checking for meta refresh) are not working at all. This is a problem, because batch api works with meta refresh when JS is not available.
Parameters
string $name: Name of the link.
2 calls to ApigeeEdgeFunctionalTestTrait::clickLinkProperly()
- DeveloperSyncTest::testDeveloperAsync in tests/
src/ Functional/ DeveloperSyncTest.php - Tests scheduled developer synchronization.
- DeveloperSyncTest::testDeveloperSync in tests/
src/ Functional/ DeveloperSyncTest.php - Tests developer synchronization.
File
- tests/
src/ Traits/ ApigeeEdgeFunctionalTestTrait.php, line 246
Class
- ApigeeEdgeFunctionalTestTrait
- Provides common functionality for the Apigee Edge test classes.
Namespace
Drupal\Tests\apigee_edge\TraitsCode
protected function clickLinkProperly(string $name) {
list($path, $query) = $this
->findLink($name);
$this
->drupalGet(static::fixUrl($path), [
'query' => $query,
]);
}