Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Use it for questions about automated Drupal tests.
10
votes
1
answer
11k
views
"\Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a r...
I am attempting to write a PHPUnit test for a service of mine.
My test looks like the following.
class CustomServiceTest extends UnitTestCase {
public function testDefaultBehavior() {
$servic …
0
votes
1
answer
294
views
Behat drupal 8 configuration
I have the following set up. I vagrant machine with d8 site setup.
The files are common. I have replicated the DB in my laptop outside the host so I can run the behat tests faster. The DB is a dump of …
5
votes
2
answers
781
views
SimpleTesting-PDOException: SQLSTATE[42S02]
I am in the processes of developing a module. I am trying to incorporate SimpleTest module in order to have a separate place that contains my code tests.
However, when I try to run a query against th …