Skip to content

Commit

Permalink
Implement testGetCookiePath test
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed May 14, 2012
1 parent a09b488 commit a98050d
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions test/classes/PMA_Config_test.php
Expand Up @@ -583,15 +583,30 @@ public function testCheckIsHttps()
}

/**
* Test for getting cookie path
*
* @param string $absolute The absolute URL used for phpMyAdmin
* @param string $expected Expected cookie path
*
* @todo Implement testGetCookiePath().
* @dataProvider cookieUris
*/
public function testGetCookiePath()
public function testGetCookiePath($absolute, $expected)
{
// Remove the following lines when you implement this test.
$this->markTestIncomplete(
'This test has not been implemented yet.'
$this->object->set('PmaAbsoluteUri', $absolute);
$this->assertEquals($expected, $this->object->getCookiePath());
}

public function cookieUris()
{
return array(
array(
'http://example.net/phpmyadmin/',
'/phpmyadmin/',
),
array(
'http://example.net/',
'/',
),
);
}

Expand Down

0 comments on commit a98050d

Please sign in to comment.