PHP 클래스 Sulu\Bundle\TestBundle\Testing\SuluTestCase

상속: extends Symfony\Cmf\Bundle\RoutingBundle\Tests\Functional\BaseTestCase
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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