PHP Class Ojs\CoreBundle\Tests\BaseTestSetup

Inheritance: extends Liip\FunctionalTestBundle\Test\WebTestCase
显示文件 Open project: ojs/ojs Class Usage Examples

Protected Properties

Property 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

Protected Methods

Method 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 method

Initialize database
protected databaseInit ( )

generateToken() protected method

protected generateToken ( $var )

logIn() protected method

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

runConsole() protected method

protected runConsole ( $command, array $options = [] ) : integer
$command
$options array
return integer

setUp() protected method

protected setUp ( )

tearDown() protected method

protected tearDown ( )

useCachedDatabase() protected method

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
return Symfony\Bundle\FrameworkBundle\Console\Application

$client protected_oe property

protected Client,Symfony\Bundle\FrameworkBundle $client
return Symfony\Bundle\FrameworkBundle\Client

$em protected_oe property

protected EntityManager,Doctrine\ORM $em
return Doctrine\ORM\EntityManager

$isFirstTest protected_oe static_oe property

protected static bool $isFirstTest
return boolean

$locale protected_oe property

protected string $locale
return string

$router protected_oe property

protected RouterInterface,Symfony\Component\Routing $router
return Symfony\Component\Routing\RouterInterface

$sampleObjectLoader protected_oe property

protected SampleObjectLoader,Ojs\CoreBundle\Service $sampleObjectLoader
return Ojs\CoreBundle\Service\SampleObjectLoader

$secondLocale protected_oe property

protected string $secondLocale
return string