mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-22 14:16:12 +01:00
Add @return void annotation to test methods
This commit is contained in:
parent
956e8b5a09
commit
a64094be3d
1 changed files with 7 additions and 1 deletions
|
@ -46,6 +46,7 @@ class TestimonialTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function getDateOfPostingInitiallyReturnsNull() {
|
||||
$this->assertNull(
|
||||
|
@ -55,6 +56,7 @@ class TestimonialTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function setDateOfPostingSetsDateOfPosting() {
|
||||
$date = new \DateTime();
|
||||
|
@ -68,6 +70,7 @@ class TestimonialTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function getNumberOfConsumedCupsInitiallyReturnsZero() {
|
||||
$this->assertSame(
|
||||
|
@ -78,6 +81,7 @@ class TestimonialTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function setNumberOfConsumedCupsSetsNumberOfConsumedCups() {
|
||||
$this->subject->setNumberOfConsumedCups(123456);
|
||||
|
@ -90,6 +94,7 @@ class TestimonialTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function getTextInitiallyReturnsEmptyString() {
|
||||
$this->assertSame(
|
||||
|
@ -100,6 +105,7 @@ class TestimonialTest extends \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase {
|
|||
|
||||
/**
|
||||
* @test
|
||||
* @return void
|
||||
*/
|
||||
public function setTextSetsText() {
|
||||
$this->subject->setText('foo bar');
|
||||
|
|
Loading…
Reference in a new issue