PHP Class Ojs\CoreBundle\Tests\BaseTestSetup

Inheritance: extends Liip\FunctionalTestBundle\Test\WebTestCase
Afficher le fichier Open project: ojs/ojs Class Usage Examples

Protected Properties

Свойство Type Description
$app Symfony\Bundle\FrameworkBundle\Console\Application
$client Symfony\Bundle\FrameworkBundle\Client
$em Doctrine\ORM\EntityManager
$isFirstTest boolean
$locale string
$router Symfony\Component\Routing\RouterInterface
$sampleObjectLoader Ojs\CoreBundle\Service\SampleObjectLoader
$secondLocale string

Méthodes protégées

Méthode Description
databaseInit ( ) Initialize database
generateToken ( $var )
logIn ( $username = 'admin', $password = 'admin' )
runConsole ( $command, array $options = [] ) : integer
setUp ( )
tearDown ( )
useCachedDatabase ( ) Use cached database for testing or return false if not

Method Details

databaseInit() protected méthode

Initialize database
protected databaseInit ( )

generateToken() protected méthode

protected generateToken ( $var )

logIn() protected méthode

protected logIn ( $username = 'admin', $password = 'admin' )

runConsole() protected méthode

protected runConsole ( $command, array $options = [] ) : integer
$command
$options array
Résultat integer

setUp() protected méthode

protected setUp ( )

tearDown() protected méthode

protected tearDown ( )

useCachedDatabase() protected méthode

Use cached database for testing or return false if not
protected useCachedDatabase ( )

Property Details

$app protected_oe property

protected Application,Symfony\Bundle\FrameworkBundle\Console $app
Résultat Symfony\Bundle\FrameworkBundle\Console\Application

$client protected_oe property

protected Client,Symfony\Bundle\FrameworkBundle $client
Résultat Symfony\Bundle\FrameworkBundle\Client

$em protected_oe property

protected EntityManager,Doctrine\ORM $em
Résultat Doctrine\ORM\EntityManager

$isFirstTest protected_oe static_oe property

protected static bool $isFirstTest
Résultat boolean

$locale protected_oe property

protected string $locale
Résultat string

$router protected_oe property

protected RouterInterface,Symfony\Component\Routing $router
Résultat Symfony\Component\Routing\RouterInterface

$sampleObjectLoader protected_oe property

protected SampleObjectLoader,Ojs\CoreBundle\Service $sampleObjectLoader
Résultat Ojs\CoreBundle\Service\SampleObjectLoader

$secondLocale protected_oe property

protected string $secondLocale
Résultat string