mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 08:56:56 +01:00

[CLEANUP] Make setUp and tearDown protected

This commit is contained in:
Oliver Klee 2014-12-14 21:20:40 +01:00
parent f3b26e35ee
commit cb2d55f4b8
7 changed files with 14 additions and 14 deletions

View file

@ -40,7 +40,7 @@ class TestimonialControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
*/
protected $testimonialRepository = NULL;
public function setUp() {
protected function setUp() {
$this->subject = new TestimonialController();
$this->view = $this->getMock('TYPO3\\CMS\\Extbase\\Mvc\\View\\ViewInterface');
@ -52,7 +52,7 @@ class TestimonialControllerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
$this->subject->injectTestimonialRepository($this->testimonialRepository);
}
public function tearDown() {
protected function tearDown() {
unset($this->subject, $this->view, $this->testimonialRepository);
}

View file

@ -25,11 +25,11 @@ class AdditionTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
*/
protected $subject = NULL;
public function setUp() {
protected function setUp() {
$this->subject = new \OliverKlee\Tea\Domain\Model\Addition();
}
public function tearDown() {
protected function tearDown() {
unset($this->subject);
}

View file

@ -25,11 +25,11 @@ class TeaBeverageTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
*/
protected $subject = NULL;
public function setUp() {
protected function setUp() {
$this->subject = new \OliverKlee\Tea\Domain\Model\TeaBeverage();
}
public function tearDown() {
protected function tearDown() {
unset($this->subject);
}

View file

@ -25,11 +25,11 @@ class TeaTypeTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
*/
protected $subject = NULL;
public function setUp() {
protected function setUp() {
$this->subject = new \OliverKlee\Tea\Domain\Model\TeaType();
}
public function tearDown() {
protected function tearDown() {
unset($this->subject);
}

View file

@ -25,11 +25,11 @@ class TestimonialTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
*/
protected $subject = NULL;
public function setUp() {
protected function setUp() {
$this->subject = new \OliverKlee\Tea\Domain\Model\Testimonial();
}
public function tearDown() {
protected function tearDown() {
unset($this->subject);
}

View file

@ -30,13 +30,13 @@ class TeaBeverageRepositoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
*/
protected $objectManager = NULL;
public function setUp() {
protected function setUp() {
$this->objectManager = $this->getMock('TYPO3\CMS\Extbase\Object\ObjectManagerInterface');
$this->subject = new \OliverKlee\Tea\Domain\Repository\TeaBeverageRepository($this->objectManager);
}
public function tearDown() {
protected function tearDown() {
unset($this->subject, $this->objectManager);
}

View file

@ -30,13 +30,13 @@ class TestimonialRepositoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
*/
protected $objectManager = NULL;
public function setUp() {
protected function setUp() {
$this->objectManager = $this->getMock('TYPO3\CMS\Extbase\Object\ObjectManagerInterface');
$this->subject = new \OliverKlee\Tea\Domain\Repository\TestimonialRepository($this->objectManager);
}
public function tearDown() {
protected function tearDown() {
unset($this->subject, $this->objectManager);
}