Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"wp-launchpad/cli": "^1.0",
"wp-launchpad/cli-installer": "^0.0",
"wp-launchpad/core": "^0.2",
"wp-launchpad/phpunit-wp-hooks": "^1.0",
"wp-launchpad/take-off": "^1.0",
"wp-media/phpunit": "^3.0"
},
Expand Down
14 changes: 14 additions & 0 deletions tests/Integration/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

namespace Launchpad\Tests\Integration;
use ReflectionObject;
use WPLaunchpadPHPUnitWPHooks\MockHooks;
use WPMedia\PHPUnit\Integration\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
{

use MockHooks;

protected $config;
protected static $transients = [];

Expand Down Expand Up @@ -55,4 +59,14 @@ protected function loadTestDataConfig() {

$this->config = $this->getTestData( dirname( $filename ), basename( $filename, '.php' ) );
}


function getPrefix(): string {
$configs = require LAUNCHPAD_PLUGIN_ROOT . '/configs/parameters.php';
return $configs['prefix'];
}

function getCurrentTest(): string {
return $this->getName();
}
}