Skip to content

Commit

Permalink
fix(tests): correct validation of action path
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Dec 1, 2017
1 parent 950da0d commit 232a87b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engine/tests/phpunit/Elgg/ActionsServiceTest.php
Expand Up @@ -188,9 +188,9 @@ public function testCanRegisterActionWithoutFilename() {
$actions = $this->actions->getAllActions();
$this->assertArrayHasKey('login', $actions);
$this->assertEquals([
'file' => realpath(Filesystem\Directory\Local::root()->getPath() . 'actions/login.php'),
'file' => realpath(Application::elggDir()->getPath() . 'actions/login.php'),
'access' => 'logged_in',
], $actions['login']);
], $actions['login']);
}

/**
Expand Down Expand Up @@ -311,7 +311,7 @@ public function testCanExecute() {

/**
* The logic is a bit odd. See #9792
*
*
* @dataProvider executeForwardUrlDataProvider
*/
public function testCanResolveForwardUrl($url, $expected) {
Expand Down Expand Up @@ -530,7 +530,7 @@ public function testCanRespondToAjax2Request() {
$this->assertInstanceOf(Response::class, $response);
$this->assertEquals(ELGG_HTTP_OK, $response->getStatusCode());
$this->assertContains('application/json', $response->headers->get('Content-Type'));
// Ajax API doesn't set charset
// Ajax API doesn't set charset
//$this->assertContains('charset=utf-8', strtolower($response->headers->get('Content-Type')));

$output = json_encode([
Expand Down

0 comments on commit 232a87b

Please sign in to comment.