/** * ShimModelTest::testGet() * * @return void */ public function testMagicFind() { $res = $this->Posts->findById(2); $this->assertNotEmpty($res->toArray()); $res = $this->Posts->findById(121212); $this->assertEmpty($res->toArray()); }