Skip to content

Commit

Permalink
Fixed: Codeception is not fully setup.
Browse files Browse the repository at this point in the history
- Moved devmode.php require to the top of init.php.
	- c3.php should be the first thing loaded.
- Added a require for the composer autoloader.
- Use localhost:80 instead of localhost:3000 for acceptance tests.
  • Loading branch information
kittysnacks committed May 10, 2018
1 parent 1ec2385 commit b7cf1fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions devmode.php.dist
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

require_once(__DIR__ . '/vendor/autoload.php');

require_once(__DIR__ . '/c3.php');

10 changes: 5 additions & 5 deletions init.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

// Development dependencies
if (file_exists(__DIR__ . '/devmode.php')) {
require_once(__DIR__ . "/devmode.php");
}

require_once(__DIR__ . "/includes/sanitize.php");

// Load site config.
Expand Down Expand Up @@ -30,8 +35,3 @@
require_once(__DIR__ . "/validate.php");
}

// Development dependencies
if (file_exists(__DIR__ . '/devmode.php')) {
require_once(__DIR__ . "/devmode.php");
}

2 changes: 1 addition & 1 deletion tests/acceptance.suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ modules:
- \Helper\Acceptance
config:
WebDriver:
url: 'http://localhost:3000'
url: 'http://localhost:80'
browser: 'chrome'

0 comments on commit b7cf1fe

Please sign in to comment.