PHP Класс Sulu\Bundle\TestBundle\Testing\SuluTestCase

Наследование: extends Symfony\Cmf\Bundle\RoutingBundle\Tests\Functional\BaseTestCase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$importer PHPCRImporter

Открытые методы

Метод Описание
setUpBeforeClass ( )
tearDown ( ) Close the database connection after the tests finish.

Защищенные методы

Метод Описание
createAuthenticatedClient ( ) : Client Create an authenticated client.
createHomeDocument ( string $name, array $locales ) Create a webspace node with the given locales.
createWebsiteClient ( ) : Client Create client for tests on the "website" context.
getEntityManager ( )
getTestUser ( ) : TestUser Return the test user (which is provided / created by the test_user_provider in this Bundle at runtime).
getTestUserId ( ) : integer Return the ID of the test user (which is provided / created by the test_user_provider in this Bundle at runtime).
initPhpcr ( ) Initialize / reset the Sulu PHPCR environment.
purgeDatabase ( ) Purge the Doctrine ORM database.
setUp ( )

Описание методов

createAuthenticatedClient() защищенный Метод

Create an authenticated client.
protected createAuthenticatedClient ( ) : Client
Результат Symfony\Bundle\FrameworkBundle\Client

createHomeDocument() защищенный Метод

Create a webspace node with the given locales.
protected createHomeDocument ( string $name, array $locales )
$name string
$locales array

createWebsiteClient() защищенный Метод

Create client for tests on the "website" context.
protected createWebsiteClient ( ) : Client
Результат Symfony\Bundle\FrameworkBundle\Client

getEntityManager() защищенный Метод

protected getEntityManager ( )

getTestUser() защищенный Метод

Return the test user (which is provided / created by the test_user_provider in this Bundle at runtime).

getTestUserId() защищенный Метод

Return the ID of the test user (which is provided / created by the test_user_provider in this Bundle at runtime).
protected getTestUserId ( ) : integer
Результат integer

initPhpcr() защищенный Метод

NOTE: We could use the document initializer here rather than manually creating the webspace nodes, but it currently adds more overhead and offers no control over *which* webspaces are created, see https://github.com/sulu-io/sulu/pull/2063 for a solution.
protected initPhpcr ( )

purgeDatabase() защищенный Метод

Purge the Doctrine ORM database.
protected purgeDatabase ( )

setUp() защищенный Метод

protected setUp ( )

setUpBeforeClass() публичный статический Метод

public static setUpBeforeClass ( )

tearDown() публичный Метод

Close the database connection after the tests finish.
public tearDown ( )

Описание свойств

$importer защищенное свойство

protected PHPCRImporter,Sulu\Bundle\TestBundle\Testing $importer
Результат PHPCRImporter