class FunctionalTestCase extends WebTestCase (View source)

Traits

Properties

protected Client $client from MakesHttpRequests
protected array $server from MakesHttpRequests
protected bool $followRedirects from MakesHttpRequests
protected array $firewallLogins from MakesHttpRequests
protected bool $catchExceptions from MakesHttpRequests
protected ObjectManager $em from InteractsWithDatabase
protected ORMExecutor $executor from InteractsWithDatabase
protected SchemaTool $schemaTool from InteractsWithDatabase
protected VerbosityLevel $verbosityLevel from InteractsWithConsole
protected bool $decorated from InteractsWithConsole

Methods

get(string $uri, array $queryParameters = [])

No description

post(string $uri, array $parameters = [])

No description

getJson(string $uri, array $content = [])

No description

postJson(string $uri, array $content = [])

No description

request(string $method, string $uri, array $parameters = [], array $files = [], $content = null, bool $changeHistory = true)

No description

json(string $method, string $uri, array $content)

No description

submit(Form $form, array $values = [])

No description

withHeaders(array $headers)

No description

click(Link $link)

No description

loginAs(UserInterface $user, string $firewall = 'secured_area')

No description

initClient()

No description

TokenInterface
createUserToken(UserInterface $user, string $firewallName)

No description

array
getKernelOptions()

No description

void
createDatabaseSchema()

No description

void
dropDatabaseSchema()

No description

void
loadFixtures($fixtureClasses, $append = true)

No description

Loader
getFixtureLoader(array $fixtureClasses)

No description

void
loadFixtureClass(ContainerAwareLoader $loader, string $className)

No description

getReference(string $ref)

No description

assertDatabaseHas(string $entityClass, array $data)

No description

assertDatabaseMissing(string $entityClass, array $data)

No description

executor()

No description

Container
getContainer()

No description

runCommand(string $name, array $parameters = [], array $inputs = null)

No description

bool
isDecorated()

No description

void
setDecorated(bool $decorated)

No description

void
ensureKernelBoot()

No description

void
setUp()

No description

void
tearDown()

No description

void
setUpTraits()

No description

void
tearDownTraits()

No description

array
getUsedTraits()

No description

string
getEnvironment()

No description

setEnvironment(string $env)

No description

TestContainer
getTestContainer()

No description

Details

protected TestResponse get(string $uri, array $queryParameters = [])

Parameters

string $uri
array $queryParameters

Return Value

TestResponse

protected TestResponse post(string $uri, array $parameters = [])

Parameters

string $uri
array $parameters

Return Value

TestResponse

protected getJson(string $uri, array $content = [])

Parameters

string $uri
array $content

protected TestResponse postJson(string $uri, array $content = [])

Parameters

string $uri
array $content

Return Value

TestResponse

protected TestResponse request(string $method, string $uri, array $parameters = [], array $files = [], $content = null, bool $changeHistory = true)

Parameters

string $method
string $uri
array $parameters
array $files
$content
bool $changeHistory

Return Value

TestResponse

protected TestResponse json(string $method, string $uri, array $content)

Parameters

string $method
string $uri
array $content

Return Value

TestResponse

protected TestResponse followRedirect()

Return Value

TestResponse

protected TestResponse submit(Form $form, array $values = [])

Parameters

Form $form
array $values

Return Value

TestResponse

protected MakesHttpRequests withHeaders(array $headers)

Parameters

array $headers

Return Value

MakesHttpRequests

protected TestResponse click(Link $link)

Parameters

Link $link

Return Value

TestResponse

protected MakesHttpRequests followingRedirects()

Return Value

MakesHttpRequests

protected MakesHttpRequests loginAs(UserInterface $user, string $firewall = 'secured_area')

Parameters

UserInterface $user
string $firewall

Return Value

MakesHttpRequests

protected MakesHttpRequests catchExceptions()

Return Value

MakesHttpRequests

protected initClient()

protected TokenInterface createUserToken(UserInterface $user, string $firewallName)

Parameters

UserInterface $user
string $firewallName

Return Value

TokenInterface

protected array getKernelOptions()

Return Value

array

protected void setUpInteractsWithDatabase()

Return Value

void

protected void createDatabaseSchema()

Return Value

void

protected void dropDatabaseSchema()

Return Value

void

protected void loadFixtures($fixtureClasses, $append = true)

Parameters

$fixtureClasses
$append

Return Value

void

protected Loader getFixtureLoader(array $fixtureClasses)

Parameters

array $fixtureClasses

Return Value

Loader

protected void loadFixtureClass(ContainerAwareLoader $loader, string $className)

Parameters

ContainerAwareLoader $loader
string $className

Return Value

void

protected getReference(string $ref)

Parameters

string $ref

protected assertDatabaseHas(string $entityClass, array $data)

Parameters

string $entityClass
array $data

protected assertDatabaseMissing(string $entityClass, array $data)

Parameters

string $entityClass
array $data

protected executor()

protected void ensureDoctrineFixturesBundle()

Return Value

void

protected Container getContainer()

Return Value

Container

protected CommandResult runCommand(string $name, array $parameters = [], array $inputs = null)

Parameters

string $name
array $parameters
array $inputs

Return Value

CommandResult

VerbosityLevel getVerbosityLevel()

Return Value

VerbosityLevel

InteractsWithConsole setVerbosityLevel(VerbosityLevel $verbosityLevel)

Parameters

VerbosityLevel $verbosityLevel

Return Value

InteractsWithConsole

bool isDecorated()

Return Value

bool

void setDecorated(bool $decorated)

Parameters

bool $decorated

Return Value

void

protected void ensureKernelBoot()

Return Value

void

protected void setUp()

Return Value

void

protected void tearDown()

Return Value

void

protected void setUpTraits()

Return Value

void

protected void tearDownTraits()

Return Value

void

protected array getUsedTraits()

Return Value

array

protected string getEnvironment()

Return Value

string

protected FunctionalTestCase setEnvironment(string $env)

Parameters

string $env

Return Value

FunctionalTestCase

protected TestContainer getTestContainer()

Return Value

TestContainer