Source of file EventRegisterControllerTest.php
Size: 1,451 Bytes - Last Modified: 2021-12-23T10:11:31+00:00
/var/www/docs.ssmods.com/process/src/tests/controllers/EventRegisterControllerTest.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 | <?php use EventRegistration\Tests\Config; class EventRegisterControllerTest extends FunctionalTest{ protected static $disable_themes = true; protected static $fixture_file = array( '../fixtures/EventManagement.yml' ); public function setUp() { Config::reset(); parent::setUp(); $this->event = $this->objFromFixture('RegistrableEvent', 'event'); $this->event->publish('Stage', 'Live'); } public function tearDown() { parent::tearDown(); $this->autoFollowRedirection = true; } public function testIndex() { $response = $this->get('test-event/register'); $this->assertEquals(200, $response->getStatusCode()); } public function testAttendee() { $response = $this->get('test-event/register/attendee'); $this->assertEquals(200, $response->getStatusCode()); $this->markTestIncomplete("Should be a redirect here"); } public function testReviewRedirect() { $this->autoFollowRedirection = false; $response = $this->get('test-event/register/review'); $this->assertEquals(302, $response->getStatusCode(), "Should redirect if no rego started"); $actual = $response->getHeader('Location'); $this->assertEquals(Director::baseURL() .'test-event/register', $actual, "Should redirect to register"); } public function testSubmitReview() { $this->markTestIncomplete(); } public function testPayment() { $this->markTestIncomplete(); } public function testComplete() { $this->markTestIncomplete(); } } |