Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal 8 Scaffold Developer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Composer
plugin
Drupal 8 Scaffold Developer
Commits
4c929de2
Commit
4c929de2
authored
6 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Add PHPUnit test suites kernel and functional-javascript
parent
10865866
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/TestSuite/FunctionalJavascript.php
+27
-0
27 additions, 0 deletions
src/TestSuite/FunctionalJavascript.php
src/TestSuite/Kernel.php
+27
-0
27 additions, 0 deletions
src/TestSuite/Kernel.php
templates/tests/phpunit.xml.dist
+6
-0
6 additions, 0 deletions
templates/tests/phpunit.xml.dist
with
60 additions
and
0 deletions
src/TestSuite/FunctionalJavascript.php
0 → 100644
+
27
−
0
View file @
4c929de2
<?php
namespace
LakeDrops\Drupal8ScaffoldDeveloper\TestSuites
;
require_once
__DIR__
.
'/Base.php'
;
/**
* Discovers tests for the functional test suite.
*/
class
FunctionalJavascript
extends
Base
{
/**
* Factory method which loads up a suite with all functional tests.
*
* @return static
* The test suite.
*/
public
static
function
suite
()
{
$root
=
dirname
(
dirname
(
dirname
(
dirname
(
dirname
(
__DIR__
)))))
.
'/web'
;
$suite
=
new
static
(
'functional-javascript'
);
$suite
->
addTestsBySuiteNamespace
(
$root
,
'FunctionalJavascript'
);
return
$suite
;
}
}
This diff is collapsed.
Click to expand it.
src/TestSuite/Kernel.php
0 → 100644
+
27
−
0
View file @
4c929de2
<?php
namespace
LakeDrops\Drupal8ScaffoldDeveloper\TestSuites
;
require_once
__DIR__
.
'/Base.php'
;
/**
* Discovers tests for the unit test suite.
*/
class
Kernel
extends
Base
{
/**
* Factory method which loads up a suite with all unit tests.
*
* @return static
* The test suite.
*/
public
static
function
suite
()
{
$root
=
dirname
(
dirname
(
dirname
(
dirname
(
dirname
(
__DIR__
)))))
.
'/web'
;
$suite
=
new
static
(
'kernel'
);
$suite
->
addTestsBySuiteNamespace
(
$root
,
'Kernel'
);
return
$suite
;
}
}
This diff is collapsed.
Click to expand it.
templates/tests/phpunit.xml.dist
+
6
−
0
View file @
4c929de2
...
...
@@ -39,9 +39,15 @@
<testsuite
name=
"unit"
>
<file>
../vendor/lakedrops/d8-project-scaffold-developer/src/TestSuite/Unit.php
</file>
</testsuite>
<testsuite
name=
"kernel"
>
<file>
../vendor/lakedrops/d8-project-scaffold-developer/src/TestSuite/Kernel.php
</file>
</testsuite>
<testsuite
name=
"functional"
>
<file>
../vendor/lakedrops/d8-project-scaffold-developer/src/TestSuite/Functional.php
</file>
</testsuite>
<testsuite
name=
"functional-javascript"
>
<file>
../vendor/lakedrops/d8-project-scaffold-developer/src/TestSuite/FunctionalJavascript.php
</file>
</testsuite>
</testsuites>
<listeners>
<listener
class=
"\Drupal\Tests\Listeners\DrupalListener"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment