Sulu\Bundle\TestBundle\Testing\SuluTestCase::getTestUser PHP Method

getTestUser() protected method

Return the test user (which is provided / created by the test_user_provider in this Bundle at runtime).
    protected function getTestUser()
    {
        $user = $this->getEntityManager()->getRepository('Sulu\\Bundle\\SecurityBundle\\Entity\\User')->findOneByUsername('test');
        return $user;
    }