Commit 72a44169 authored by Aron Novak's avatar Aron Novak

og_ui/og_ui.test: fixed failing access test. Drush + built-in PHP webserver...

og_ui/og_ui.test: fixed failing access test. Drush + built-in PHP webserver causes whatever/10.00/group path a 404, it does not reach Drupal. Instead of patching Drush, rewrote the test to check similar, but a bit different scenario
parent 23490592
......@@ -429,8 +429,10 @@ class OgUiManagePeopleTestCase extends DrupalWebTestCase {
public function testOgUiPath() {
$this->drupalGet('entity_test/' . $this->entity->pid . 'invalid/group');
$this->assertResponse(403);
// Numeric values that are not integers are forbidden, too.
$this->drupalGet('entity_test/' . $this->entity->pid . '.333/group');
// Numeric values that are not consist of decimal characters are forbidden.
// 0x1 for instance is equivalent to 1
// http://php.net/manual/en/language.types.integer.php
$this->drupalGet('entity_test/0x' . $this->entity->pid . '/group');
$this->assertResponse(403);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment