mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-12-22 23:46:10 +01:00
Add @return void annotation to test methods
This commit is contained in:
parent
bb52944347
commit
956e8b5a09
1 changed files with 13 additions and 1 deletions
|
@ -46,6 +46,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function getSizeInitiallyReturnsZero() {
|
||||
$this->assertSame(
|
||||
|
@ -56,6 +57,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function setSizeSetsSize() {
|
||||
$this->subject->setSize(1234.56);
|
||||
|
@ -68,6 +70,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function getTypeInitiallyReturnsNull() {
|
||||
$this->assertNull(
|
||||
|
@ -77,6 +80,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function setTypeSetsType() {
|
||||
$type = new \OliverKlee\Tea\Domain\Model\TeaType();
|
||||
|
@ -90,6 +94,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function getAdditionsInitiallyReturnsEmptyStorage() {
|
||||
$this->assertEquals(
|
||||
|
@ -100,6 +105,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function setAdditionsSetsAdditions() {
|
||||
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||
|
@ -113,6 +119,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function addAdditionAddsAddition() {
|
||||
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||
|
@ -128,6 +135,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function removeAdditionRemovesAddition() {
|
||||
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||
|
@ -144,6 +152,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function getTestimonialsInitiallyReturnsEmptyStorage() {
|
||||
$this->assertEquals(
|
||||
|
@ -154,6 +163,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function setTestimonialsSetsTestimonials() {
|
||||
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||
|
@ -167,6 +177,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function addTestimonialAddsTestimonial() {
|
||||
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||
|
@ -182,6 +193,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function removeTestimonialRemovesTestimonial() {
|
||||
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||
|
@ -195,4 +207,4 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
$this->subject->getTestimonials()->contains($newItem)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue