Skip to content

Commit

Permalink
Integrate Mock chain library (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmizzell authored Dec 22, 2019
1 parent 579bb6d commit ef0cd62
Show file tree
Hide file tree
Showing 41 changed files with 216 additions and 1,976 deletions.
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@
"guzzlehttp/guzzle" : "^6.3",
"ezyang/htmlpurifier" : "^4.11",
"ramsey/uuid" : "^3.8.0",
"oomphinc/composer-installers-extender": "~1.1"
"oomphinc/composer-installers-extender": "~1.1",
"getdkan/mock-chain": "dev-master"
},
"require-dev": {
"burdamagazinorg/thunder-dev-tools": "dev-master",
"drupal/coder": "8.2",
"drupal/devel": "1.x-dev"
"phpunit/phpunit": "^7.5"
},
"repositories": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

use Drupal\Core\Extension\Extension;
use Drupal\dkan_api\Controller\Docs;
use Drupal\dkan_common\Tests\DkanTestBase;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\dkan_common\Tests\Mock\Chain;
use Drupal\dkan_common\Tests\Mock\Options;
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;
use MockChain\Chain;
use MockChain\Options;

/**
* Test class Docs.
*/
class DocsTest extends DkanTestBase {
class DocsTest extends TestCase {

/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* Class QueryToQueryHelperTrait.
*
* Given a Query object, setup a Drupal's select query.
*
* @codeCoverageIgnore
*/
trait QueryToQueryHelperTrait {

Expand Down
30 changes: 0 additions & 30 deletions modules/custom/dkan_common/src/Tests/DkanTestBase.php

This file was deleted.

132 changes: 0 additions & 132 deletions modules/custom/dkan_common/src/Tests/DkanUnitTestTrait.php

This file was deleted.

Loading

0 comments on commit ef0cd62

Please sign in to comment.