Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Increase coverage in Collections tests
  • Loading branch information
bastianallgeier committed Jun 20, 2019
1 parent 3232736 commit 36456d3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/Cms/Collections/CollectionsTest.php
Expand Up @@ -13,12 +13,17 @@ protected function _app()
]); ]);
} }


public function testGet() public function testGetAndCall()
{ {
$app = $this->_app(); $app = $this->_app();
$collection = new Collection(); $collection = new Collection();
$result = $app->collections()->get('test');


// get
$result = $app->collections()->get('test');
$this->assertEquals($collection, $result);

// __call
$result = $app->collections()->test();
$this->assertEquals($collection, $result); $this->assertEquals($collection, $result);
} }


Expand Down

0 comments on commit 36456d3

Please sign in to comment.