mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-11-10 03:56:12 +01:00
[CLEANUP] Lowercase null, false and true
This commit is contained in:
parent
2595b63847
commit
e286cfd8a2
11 changed files with 19 additions and 19 deletions
|
@ -27,7 +27,7 @@ class TestimonialController extends ActionController {
|
||||||
/**
|
/**
|
||||||
* @var \OliverKlee\Tea\Domain\Repository\TestimonialRepository
|
* @var \OliverKlee\Tea\Domain\Repository\TestimonialRepository
|
||||||
*/
|
*/
|
||||||
protected $testimonialRepository = NULL;
|
protected $testimonialRepository = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Injects the TestimonialRepository.
|
* Injects the TestimonialRepository.
|
||||||
|
|
|
@ -29,19 +29,19 @@ class TeaBeverage extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
||||||
* @var \OliverKlee\Tea\Domain\Model\TeaType
|
* @var \OliverKlee\Tea\Domain\Model\TeaType
|
||||||
* @lazy
|
* @lazy
|
||||||
*/
|
*/
|
||||||
protected $type = NULL;
|
protected $type = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\OliverKlee\Tea\Domain\Model\Addition>
|
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\OliverKlee\Tea\Domain\Model\Addition>
|
||||||
* @lazy
|
* @lazy
|
||||||
*/
|
*/
|
||||||
protected $additions = NULL;
|
protected $additions = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\OliverKlee\Tea\Domain\Model\Testimonial>
|
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\OliverKlee\Tea\Domain\Model\Testimonial>
|
||||||
* @lazy
|
* @lazy
|
||||||
*/
|
*/
|
||||||
protected $testimonials = NULL;
|
protected $testimonials = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The constructor.
|
* The constructor.
|
||||||
|
|
|
@ -29,7 +29,7 @@ class TeaType extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
||||||
/**
|
/**
|
||||||
* @var bool
|
* @var bool
|
||||||
*/
|
*/
|
||||||
protected $caffeinated = FALSE;
|
protected $caffeinated = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string $title
|
* @return string $title
|
||||||
|
|
|
@ -23,7 +23,7 @@ class Testimonial extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
|
||||||
/**
|
/**
|
||||||
* @var \DateTime
|
* @var \DateTime
|
||||||
*/
|
*/
|
||||||
protected $dateOfPosting = NULL;
|
protected $dateOfPosting = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
|
|
|
@ -28,17 +28,17 @@ class TestimonialControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
||||||
/**
|
/**
|
||||||
* @var TestimonialController
|
* @var TestimonialController
|
||||||
*/
|
*/
|
||||||
protected $subject = NULL;
|
protected $subject = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var ViewInterface|\PHPUnit_Framework_MockObject_MockObject
|
* @var ViewInterface|\PHPUnit_Framework_MockObject_MockObject
|
||||||
*/
|
*/
|
||||||
protected $view = NULL;
|
protected $view = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var TestimonialRepository|\PHPUnit_Framework_MockObject_MockObject
|
* @var TestimonialRepository|\PHPUnit_Framework_MockObject_MockObject
|
||||||
*/
|
*/
|
||||||
protected $testimonialRepository = NULL;
|
protected $testimonialRepository = null;
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
$this->subject = new TestimonialController();
|
$this->subject = new TestimonialController();
|
||||||
|
@ -47,7 +47,7 @@ class TestimonialControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
||||||
$this->subject->setView($this->view);
|
$this->subject->setView($this->view);
|
||||||
|
|
||||||
$this->testimonialRepository = $this->getMock(
|
$this->testimonialRepository = $this->getMock(
|
||||||
'OliverKlee\\Tea\\Domain\\Repository\\TestimonialRepository', array(), array(), '', FALSE
|
'OliverKlee\\Tea\\Domain\\Repository\\TestimonialRepository', array(), array(), '', false
|
||||||
);
|
);
|
||||||
$this->subject->injectTestimonialRepository($this->testimonialRepository);
|
$this->subject->injectTestimonialRepository($this->testimonialRepository);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ class AdditionTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
||||||
/**
|
/**
|
||||||
* @var \OliverKlee\Tea\Domain\Model\Addition
|
* @var \OliverKlee\Tea\Domain\Model\Addition
|
||||||
*/
|
*/
|
||||||
protected $subject = NULL;
|
protected $subject = null;
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
$this->subject = new \OliverKlee\Tea\Domain\Model\Addition();
|
$this->subject = new \OliverKlee\Tea\Domain\Model\Addition();
|
||||||
|
|
|
@ -25,7 +25,7 @@ class TeaBeverageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
||||||
/**
|
/**
|
||||||
* @var \OliverKlee\Tea\Domain\Model\TeaBeverage
|
* @var \OliverKlee\Tea\Domain\Model\TeaBeverage
|
||||||
*/
|
*/
|
||||||
protected $subject = NULL;
|
protected $subject = null;
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
$this->subject = new \OliverKlee\Tea\Domain\Model\TeaBeverage();
|
$this->subject = new \OliverKlee\Tea\Domain\Model\TeaBeverage();
|
||||||
|
|
|
@ -23,7 +23,7 @@ class TeaTypeTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
||||||
/**
|
/**
|
||||||
* @var \OliverKlee\Tea\Domain\Model\TeaType
|
* @var \OliverKlee\Tea\Domain\Model\TeaType
|
||||||
*/
|
*/
|
||||||
protected $subject = NULL;
|
protected $subject = null;
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
$this->subject = new \OliverKlee\Tea\Domain\Model\TeaType();
|
$this->subject = new \OliverKlee\Tea\Domain\Model\TeaType();
|
||||||
|
@ -56,7 +56,7 @@ class TeaTypeTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
||||||
*/
|
*/
|
||||||
public function getCaffeinatedInitiallyReturnsFalse() {
|
public function getCaffeinatedInitiallyReturnsFalse() {
|
||||||
self::assertSame(
|
self::assertSame(
|
||||||
FALSE,
|
false,
|
||||||
$this->subject->getCaffeinated()
|
$this->subject->getCaffeinated()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -65,9 +65,9 @@ class TeaTypeTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
||||||
* @test
|
* @test
|
||||||
*/
|
*/
|
||||||
public function setCaffeinatedSetsCaffeinated() {
|
public function setCaffeinatedSetsCaffeinated() {
|
||||||
$this->subject->setCaffeinated(TRUE);
|
$this->subject->setCaffeinated(true);
|
||||||
self::assertSame(
|
self::assertSame(
|
||||||
TRUE,
|
true,
|
||||||
$this->subject->getCaffeinated()
|
$this->subject->getCaffeinated()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ class TestimonialTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
||||||
/**
|
/**
|
||||||
* @var \OliverKlee\Tea\Domain\Model\Testimonial
|
* @var \OliverKlee\Tea\Domain\Model\Testimonial
|
||||||
*/
|
*/
|
||||||
protected $subject = NULL;
|
protected $subject = null;
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
$this->subject = new \OliverKlee\Tea\Domain\Model\Testimonial();
|
$this->subject = new \OliverKlee\Tea\Domain\Model\Testimonial();
|
||||||
|
|
|
@ -28,7 +28,7 @@ class TeaBeverageRepositoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
||||||
/**
|
/**
|
||||||
* @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject
|
* @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject
|
||||||
*/
|
*/
|
||||||
protected $objectManager = NULL;
|
protected $objectManager = null;
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
$this->objectManager = $this->getMock('TYPO3\CMS\Extbase\Object\ObjectManagerInterface');
|
$this->objectManager = $this->getMock('TYPO3\CMS\Extbase\Object\ObjectManagerInterface');
|
||||||
|
|
|
@ -28,7 +28,7 @@ class TestimonialRepositoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
|
||||||
/**
|
/**
|
||||||
* @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject
|
* @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface|\PHPUnit_Framework_MockObject_MockObject
|
||||||
*/
|
*/
|
||||||
protected $objectManager = NULL;
|
protected $objectManager = null;
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
$this->objectManager = $this->getMock('TYPO3\CMS\Extbase\Object\ObjectManagerInterface');
|
$this->objectManager = $this->getMock('TYPO3\CMS\Extbase\Object\ObjectManagerInterface');
|
||||||
|
|
Loading…
Reference in a new issue