assertSame(411, $cover->getId()); $I->assertSame(file_get_contents(codecept_data_dir().'/cover/cover411.jpeg'), $cover->getJpeg()); } public function findByIdThrowsExceptionIfCoverDoesNotExist(CrudTester $I) { $I->expectThrowable(EntityNotFoundException::class, function () { Cover::findById(PHP_INT_MAX); }); } }