-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move phpunit tests (#295) #313
Changes from 7 commits
49a07e1
0c6f5b4
2967231
8bbb327
1a71a85
d2c7c0a
e44370d
0be7d6a
02485a9
8b589e6
460e067
ae80fde
a8d4200
967d30f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,8 @@ abstract class TestBase extends \PHPUnit_Framework_TestCase { | |
public function __construct($name = NULL, array $data = array(), $data_name = '') { | ||
|
||
parent::__construct($name, $data, $data_name); | ||
$this->projectDirectory = dirname(dirname(dirname(__DIR__))); | ||
$directory = realpath(dirname(__FILE__) . '/../../../'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is likely failing because of how the tests are called. They are intended to be called from the child We'll want to tag these tests with a group like
The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm confused here - the tests themselves all now live in vendor/acquia/blt/phpunit/src. Running |
||
$this->projectDirectory = dirname($directory) . '/blt-project'; | ||
$this->drupalRoot = $this->projectDirectory . '/docroot'; | ||
$this->config = Yaml::parse(file_get_contents("{$this->projectDirectory}/project.yml")); | ||
if (file_exists("{$this->projectDirectory}/project.local.yml")) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea to return this as json.