Last active
December 31, 2015 06:49
-
-
Save dennis-fedco/7950074 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace FedcoUserTest; | |
use Zend\Test\PHPUnit\Controller\AbstractHttpControllerTestCase; | |
class IndexControllerTest extends AbstractHttpControllerTestCase | |
{ | |
public function setUp() | |
{ | |
$this->setApplicationConfig(include '/config/application.config.php'); | |
parent::setUp(); | |
} | |
public function testIndexActionCanBeAccessed() //fails | |
{ | |
$this->dispatch('/user/machinist'); | |
$this->assertResponseStatusCode(200); //gives me actual code is "403", because I am not authenticated | |
// ... | |
//questions: | |
//* How do I authenticate? | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment