Code Duplication    Length = 18-18 lines in 5 locations

tests/AdminModule/presenters/CloningPresenterTest.php 1 location

@@ 3-20 (lines=18) @@
1
<?php
2
3
class CloningPresenterTest extends \WebCMS\Tests\PresenterTestCase
4
{
5
    public function setUp()
6
    {
7
        parent::setUp();
8
9
        $this->createPresenter('Admin:Cloning');
10
    }
11
12
    public function testDefault()
13
    {
14
        $response = $this->makeRequest();
15
16
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
17
18
        $this->getResponse($response);
19
    }
20
}
21

tests/AdminModule/presenters/HomepagePresenterTest.php 1 location

@@ 3-20 (lines=18) @@
1
<?php
2
3
class HomepagePresenterTest extends \WebCMS\Tests\PresenterTestCase
4
{
5
    public function setUp()
6
    {
7
        parent::setUp();
8
9
        $this->createPresenter('Admin:Homepage');
10
    }
11
12
    public function testDefault()
13
    {
14
        $response = $this->makeRequest();
15
16
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
17
18
        $this->getResponse($response);
19
    }
20
}
21

tests/AdminModule/presenters/PagesPresenterTest.php 1 location

@@ 3-20 (lines=18) @@
1
<?php
2
3
class PagesPresenterTest extends \WebCMS\Tests\PresenterTestCase
4
{
5
    public function setUp()
6
    {
7
        parent::setUp();
8
9
        $this->createPresenter('Admin:Pages');
10
    }
11
12
    public function testDefault()
13
    {
14
        $response = $this->makeRequest();
15
16
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
17
18
        $this->getResponse($response);
19
    }
20
}
21

tests/AdminModule/presenters/TranslationsPresenterTest.php 1 location

@@ 3-20 (lines=18) @@
1
<?php
2
3
class TranslationsPresenterTest extends \WebCMS\Tests\PresenterTestCase
4
{
5
    public function setUp()
6
    {
7
        parent::setUp();
8
9
        $this->createPresenter('Admin:Translations');
10
    }
11
12
    public function testDefault()
13
    {
14
        $response = $this->makeRequest();
15
16
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
17
18
        $this->getResponse($response);
19
    }
20
}
21

tests/AdminModule/presenters/TranslatorPresenterTest.php 1 location

@@ 3-20 (lines=18) @@
1
<?php
2
3
class TranslatorPresenterTest extends \WebCMS\Tests\PresenterTestCase
4
{
5
    public function setUp()
6
    {
7
        parent::setUp();
8
9
        $this->createPresenter('Admin:Translator');
10
    }
11
12
    public function testDefault()
13
    {
14
        $response = $this->makeRequest();
15
16
        $this->assertInstanceOf('Nette\Application\Responses\TextResponse', $response);
17
18
        $this->getResponse($response);
19
    }
20
}
21