/** * @test */ public function saveAddsModelToCache() { $uid = $this->testingFramework->createRecord('tx_oelib_test', array('title' => 'foo')); /** @var Tx_Oelib_Tests_Unit_Fixtures_TestingModel $model */ $model = $this->subject->find($uid); $model->setTitle('bar'); $this->subject->save($model); $cachedModels = $this->subject->getCachedModels(); self::assertSame($model->getUid(), $cachedModels[0]->getUid()); }