/** * @test * @return void */ public function previousNeighbourCanBeFound() { $this->news->_setProperty('uid', 106); $fo = $this->mockedViewHelper->_call('getNeighbours', $this->news, '', 'datetime'); $exp = [0 => ['uid' => 105, 'title' => NULL], 1 => ['uid' => 106, 'title' => NULL]]; $this->assertEquals($exp, $fo); }
/** * @test */ public function wrongIdWillReturnNullForObject() { $out = $this->viewHelper->_call('getObject', 0); $this->assertEquals($out, NULL); }