public function testCanRegisterFilesAsActions()
{
$this->assertFalse($this->actions->exists('test/output'));
$this->assertFalse($this->actions->exists('test/not_registered'));
$this->assertTrue($this->actions->register('test/output', "{$this->actionsDir}/output.php", 'public'));
$this->assertTrue($this->actions->register('test/non_ex_file', "{$this->actionsDir}/non_existing_file.php", 'public'));
$this->assertTrue($this->actions->exists('test/output'));
$this->assertFalse($this->actions->exists('test/non_ex_file'));
$this->assertFalse($this->actions->exists('test/not_registered'));
$actions = $this->actions->getAllActions();
$this->assertArrayHasKey('test/output', $actions);
$this->assertEquals(['file' => "{$this->actionsDir}/output.php", 'access' => 'public'], $actions['test/output']);
return $this->actions;
}