mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 19:36:12 +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
|
* @test
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function getSizeInitiallyReturnsZero() {
|
public function getSizeInitiallyReturnsZero() {
|
||||||
$this->assertSame(
|
$this->assertSame(
|
||||||
|
@ -56,6 +57,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setSizeSetsSize() {
|
public function setSizeSetsSize() {
|
||||||
$this->subject->setSize(1234.56);
|
$this->subject->setSize(1234.56);
|
||||||
|
@ -68,6 +70,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function getTypeInitiallyReturnsNull() {
|
public function getTypeInitiallyReturnsNull() {
|
||||||
$this->assertNull(
|
$this->assertNull(
|
||||||
|
@ -77,6 +80,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setTypeSetsType() {
|
public function setTypeSetsType() {
|
||||||
$type = new \OliverKlee\Tea\Domain\Model\TeaType();
|
$type = new \OliverKlee\Tea\Domain\Model\TeaType();
|
||||||
|
@ -90,6 +94,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function getAdditionsInitiallyReturnsEmptyStorage() {
|
public function getAdditionsInitiallyReturnsEmptyStorage() {
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
|
@ -100,6 +105,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setAdditionsSetsAdditions() {
|
public function setAdditionsSetsAdditions() {
|
||||||
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||||
|
@ -113,6 +119,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function addAdditionAddsAddition() {
|
public function addAdditionAddsAddition() {
|
||||||
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||||
|
@ -128,6 +135,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function removeAdditionRemovesAddition() {
|
public function removeAdditionRemovesAddition() {
|
||||||
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||||
|
@ -144,6 +152,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function getTestimonialsInitiallyReturnsEmptyStorage() {
|
public function getTestimonialsInitiallyReturnsEmptyStorage() {
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
|
@ -154,6 +163,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function setTestimonialsSetsTestimonials() {
|
public function setTestimonialsSetsTestimonials() {
|
||||||
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||||
|
@ -167,6 +177,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function addTestimonialAddsTestimonial() {
|
public function addTestimonialAddsTestimonial() {
|
||||||
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||||
|
@ -182,6 +193,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @test
|
* @test
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function removeTestimonialRemovesTestimonial() {
|
public function removeTestimonialRemovesTestimonial() {
|
||||||
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
$items = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||||
|
|
Loading…
Reference in a new issue