/** * @test */ public function getNewUidForNonEmptyMapReturnsUidNotInMap() { $this->setExpectedException('tx_oelib_Exception_NotFound'); $model = new Tx_Oelib_Tests_Unit_Fixtures_TestingModel(); $model->setUid(1); $this->subject->add($model); $newUid = $this->subject->getNewUid(); $this->subject->get($newUid); }