for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\DoctrinePHPCRAdminBundle\Tests\WebTest\Dashboard;
use Sonata\DoctrinePHPCRAdminBundle\Tests\Fixtures\App\DataFixtures\Phpcr\LoadTreeData;
use Symfony\Cmf\Component\Testing\Functional\BaseTestCase;
/**
* @author Maximilian Berghoff <[email protected]>
class TreeBrowserTest extends BaseTestCase
{
protected function setUp(): void
$this->db('PHPCR')->loadFixtures([LoadTreeData::class]);
$this->client = $this->createClient();
}
public function testTreeOnDashboardLoadsWithNoErrors(): void
$crawler = $this->client->request('GET', '/admin/dashboard');
$res = $this->client->getResponse();
$this->assertResponseSuccess($res);
$this->assertCount(1, $crawler->filter('div#tree'));