Skip to content

Commit

Permalink
add Test for fixing controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
keywan-ghadami-oxid committed Jan 6, 2019
1 parent 319c1ae commit 648df50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tests/Integration/Core/FixHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ public function testFixExtensions()

public function testFixControllers()
{
print_r ($this->getConfigParam('aModuleControllers'));
$this->setConfigParam('aModuleControllers', ['a' => 'b']);
$old = $this->getConfigParam('aModuleControllers');
$this->setConfigParam('aModuleControllers', ['module-a' => ['mycontroller'=>'notexistingclass']]);
$this->callSut();
$this->assertNotEquals($this->getConfigParam('aModuleControllers'), ['a' => 'b']);
//$this->assertLogEntry("fixing module controllers");
$this->assertEquals($this->getConfigParam('aModuleControllers'), $old);
$this->assertLogEntry("fixing module controllers");
}

/**
Expand Down

0 comments on commit 648df50

Please sign in to comment.