Permalink
Browse files

fix(tests): correct validation of action path

  • Loading branch information...
jeabakker committed Dec 1, 2017
1 parent 950da0d commit 232a87b84f2e40a6e0f5bda3cb52b63fbb81877d
Showing with 4 additions and 4 deletions.
  1. +4 −4 engine/tests/phpunit/Elgg/ActionsServiceTest.php
@@ -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']);
}
/**
@@ -311,7 +311,7 @@ public function testCanExecute() {
/**
* The logic is a bit odd. See #9792
*
*
* @dataProvider executeForwardUrlDataProvider
*/
public function testCanResolveForwardUrl($url, $expected) {
@@ -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([

0 comments on commit 232a87b

Please sign in to comment.