diff --git a/Tests/Functional/Domain/Repository/TeaRepositoryTest.php b/Tests/Functional/Domain/Repository/TeaRepositoryTest.php index 3ef2f33..0bfbaed 100644 --- a/Tests/Functional/Domain/Repository/TeaRepositoryTest.php +++ b/Tests/Functional/Domain/Repository/TeaRepositoryTest.php @@ -101,6 +101,7 @@ final class TeaRepositoryTest extends FunctionalTestCase self::assertSame('Earl Grey', $model->getTitle()); self::assertSame('Fresh and hot.', $model->getDescription()); self::assertSame(2, $model->getOwnerUid()); + // @todo: add test for reading the `internalNotes` property (needs additions to the SQL and the TCA) } /** @@ -180,4 +181,8 @@ final class TeaRepositoryTest extends FunctionalTestCase $result->rewind(); self::assertSame(2, $result->current()->getUid()); } + + // @todo: Add tests for a to-be-written method `findByFullText` that searches for substrings using `LIKE` + // in title and description. + // Also test with a title that contains a percent sign (to make sure the escaping is correct). } diff --git a/Tests/Unit/Domain/Model/TeaTest.php b/Tests/Unit/Domain/Model/TeaTest.php index bb5981f..1a4ddff 100644 --- a/Tests/Unit/Domain/Model/TeaTest.php +++ b/Tests/Unit/Domain/Model/TeaTest.php @@ -106,4 +106,10 @@ final class TeaTest extends UnitTestCase self::assertSame($value, $this->subject->getOwnerUid()); } + + // @todo: Tests for the "internalNotes" property: + // getInternalNotesInitiallyReturnsEmptyString + // setInternalNotesSetsInternalNotes + // + // after that, continue with the functional tests for the repository }