Skip to content

Commit a7007f0

Browse files
committed
Fix tests
1 parent e2aa792 commit a7007f0

File tree

6 files changed

+3
-26
lines changed

6 files changed

+3
-26
lines changed

app/config/config.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ framework:
2222
twig:
2323
debug: '%kernel.debug%'
2424
strict_variables: '%kernel.debug%'
25-
form:
26-
resources:
27-
- 'CmfMediaBundle:Form:fields.html.twig'
2825
exception_controller: 'FOS\RestBundle\Controller\ExceptionController::showAction'
2926

3027
# Assetic Configuration
@@ -182,8 +179,6 @@ sonata_admin:
182179
- cmf_block.container_admin
183180
- cmf_block.reference_admin
184181
- cmf_block.action_admin
185-
- cmf_block.imagine.slideshow_admin
186-
- cmf_block.imagine.imagine_admin
187182
routing:
188183
label: URLs
189184
icon: '<i class="fa fa-link"></i>'
@@ -212,7 +207,6 @@ sonata_doctrine_phpcr_admin:
212207
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ContainerBlock
213208
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ReferenceBlock
214209
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ActionBlock
215-
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\SlideshowBlock
216210
- Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\RssBlock
217211
Symfony\Cmf\Bundle\BlockBundle\Doctrine\Phpcr\ReferenceBlock:
218212
valid_children: []

app/tests/AdminDashboardTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public function testContents()
4343
$this->assertContains('Sonata Admin', $response->getContent());
4444

4545
$this->assertCount(1, $crawler->filter('.container-fluid'));
46-
$this->assertCount(12, $crawler->filter('.sonata-ba-list-label'));
46+
$this->assertCount(9, $crawler->filter('.sonata-ba-list-label'));
4747
}
4848
}

app/tests/AdminTest.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ class AdminTest extends WebTestCase
3737
'/cmf/block/actionblock/create',
3838
'/cmf/block/actionblock/{id}/edit',
3939
'/cmf/block/actionblock/{id}/delete',
40-
'/cmf/block/imagineblock/list',
41-
'/cmf/block/imagineblock/create',
4240
'/cmf/routing/route/list',
4341
'/cmf/routing/route/create',
4442
'/cmf/routing/route/{id}/edit',
@@ -55,10 +53,6 @@ class AdminTest extends WebTestCase
5553
'/cmf/menu/menunode/create',
5654
'/cmf/menu/menunode/{id}/edit',
5755
'/cmf/menu/menunode/{id}/delete',
58-
'/cmf/simplecms/page/list',
59-
'/cmf/simplecms/page/create',
60-
'/cmf/simplecms/page/{id}/edit',
61-
'/cmf/simplecms/page/{id}/delete',
6256
);
6357

6458
protected $testedPatterns = array();

app/tests/HomepageTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ public function testContents()
3636
$this->assertCount(1, $crawler->filter('h1:contains(Homepage)'));
3737
$this->assertCount(1, $crawler->filter('h2:contains("Welcome to the Symfony CMF Demo")'));
3838

39-
$menuCount = $this->isSearchSupported() ? 22 : 21;
40-
$this->assertCount($menuCount, $crawler->filter('.panel-nav li'));
39+
$this->assertCount(23, $crawler->filter('.panel-nav li'));
4140
}
4241

4342
public function testJsonContents()

app/tests/StaticPageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function contentDataProvider()
4444
array('/demo/type', 'Controller by type'),
4545
array('/demo/class', 'Controller by class'),
4646
array('/hello', 'Hello World!'),
47-
array('/about', 'Some information about us'),
47+
array('/en/about', 'Some information about us'),
4848
);
4949
}
5050

app/tests/WebTestCase.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,6 @@ public function setUp()
3232
self::$fixturesLoaded = true;
3333
}
3434

35-
protected function isSearchSupported()
36-
{
37-
return $this->getContainer()
38-
->get('doctrine_phpcr')
39-
->getConnection()
40-
->getRepository()
41-
->getDescriptor(RepositoryInterface::QUERY_FULL_TEXT_SEARCH_SUPPORTED)
42-
;
43-
}
44-
4535
protected function createClientAuthenticated(array $options = array(), array $server = array())
4636
{
4737
$server = array_merge($server, array(

0 commit comments

Comments
 (0)