public function DeveloperAppUITest::testSameAppNameDifferentUser in Apigee Edge 8
Tests creating two apps with the same name but different developers.
File
- tests/
src/ Functional/ DeveloperAppUITest.php, line 218
Class
- DeveloperAppUITest
- Developer app UI tests.
Namespace
Drupal\Tests\apigee_edge\FunctionalCode
public function testSameAppNameDifferentUser() {
$name = strtolower($this
->randomMachineName());
$this
->postCreateAppForm([
'name' => $name,
'displayName[0][value]' => $name,
"api_products[{$this->products[0]->getName()}]" => $this->products[0]
->getName(),
]);
$second_user = $this
->createAccount(static::$permissions);
$this
->drupalLogin($second_user);
$this
->postCreateAppForm([
'name' => $name,
'displayName[0][value]' => $name,
], $second_user);
$this
->assertSession()
->pageTextNotContains(static::DUPLICATE_MACHINE_NAME);
$this
->drupalLogin($this->account);
$second_user
->delete();
}