mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-09-19 23:16:12 +02:00
Add some testing exercises
This commit is contained in:
parent
2ab2a6c0aa
commit
b6cf408eaf
2 changed files with 11 additions and 0 deletions
|
@ -101,6 +101,7 @@ final class TeaRepositoryTest extends FunctionalTestCase
|
||||||
self::assertSame('Earl Grey', $model->getTitle());
|
self::assertSame('Earl Grey', $model->getTitle());
|
||||||
self::assertSame('Fresh and hot.', $model->getDescription());
|
self::assertSame('Fresh and hot.', $model->getDescription());
|
||||||
self::assertSame(2, $model->getOwnerUid());
|
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();
|
$result->rewind();
|
||||||
self::assertSame(2, $result->current()->getUid());
|
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).
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,4 +106,10 @@ final class TeaTest extends UnitTestCase
|
||||||
|
|
||||||
self::assertSame($value, $this->subject->getOwnerUid());
|
self::assertSame($value, $this->subject->getOwnerUid());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @todo: Tests for the "internalNotes" property:
|
||||||
|
// getInternalNotesInitiallyReturnsEmptyString
|
||||||
|
// setInternalNotesSetsInternalNotes
|
||||||
|
//
|
||||||
|
// after that, continue with the functional tests for the repository
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue