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.
-1
votes
1
answer
136
views
How to do load testing that simulate adding a node with a drupal site?
I know we can use apaceh workbench to do some load testing and provide some statistics. …
1
vote
1
answer
177
views
How to test an exception have been logged instead of thrown?
I have the following code that throws catch an exption:
public function deliverPrintable(array $entities, PrintEngineInterface $print_engine, $force_download = FALSE, $use_default_css = TRUE) {
…
3
votes
1
answer
156
views
How do I troubleshoot unit tests using xdebug?
But when I enable the testing module and try to run a single test on admin/config/development/testing where a breakpoint in the test source code has been setup, nothing gets triggered. …
2
votes
2
answers
1k
views
how to exclude PHPUnit based functional tests from runnning?
I am trying to run only unit test for my custom module.
./vendor/bin/phpunit -c ./web/core ./web/modules/custom/testing_example --testsuite=unit .
But I keep getting the following error:
There …
8
votes
1
answer
3k
views
how to unit test an http client service with DI in drupal 8?
Testing
E
Time: 42.35 seconds, Memory: 610.25MB
There was 1 error:
1) Drupal\data_provider\Tests\Unit\DataProviderServiceTest::testGetSubscriptions
Argument 1 passed to Drupal\data_provider\DataProviderService … How do I start with testing methods on the service?
2. Should my unit tests make actual api requests or mock them? …