Skip to content

Commit

Permalink
fix block tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aembler committed Aug 14, 2018
1 parent be6a86a commit 070a68c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion concrete/src/Block/BlockController.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ public function validateComposerAddBlockPassThruAction(Type $type)
/**
* @return int|null
*/
public function getBlockTypeID(): ?int
public function getBlockTypeID()
{
return $this->btID;
}
Expand Down
5 changes: 5 additions & 0 deletions tests/tests/Block/BlockActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,13 @@ public function testBlockAddAction()
$url = $controller->getActionURL('delete_form', 'token');

$this->assertEquals('http://www.dummyco.com/path/to/server/index.php/ccm/system/block/action/add/123/Main/4/delete_form/token', (string)$url);
}

protected function tearDown()
{
$req = Request::getInstance();
$req->clearcurrentPage();
parent::tearDown();
}

protected function getTestBlockViewEditObject()
Expand Down

0 comments on commit 070a68c

Please sign in to comment.