Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rasmus Bengtsson
committed
Jan 26, 2017
1 parent
7f8b706
commit 3883f5a
Showing
8 changed files
with
289 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
node_modules/ | ||
imgix_plugin-*.zip | ||
.DS_Store | ||
/vendor/ | ||
/composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "imgix-wordpress/imgix-wordpress", | ||
"type": "wordpress-plugin", | ||
"license": "BSD-2.0", | ||
"description": "imgix WordPress plugin", | ||
"homepage": "https://github.com/imgix-wordpress/imgix-wordpress", | ||
"keywords": [ | ||
"wordpress", | ||
"wordpress-plugin", | ||
"imgix" | ||
], | ||
"require": { | ||
"php": "^5.5.9 || ^7.0" | ||
}, | ||
"require-dev": { | ||
"frozzare/wp-test-suite": "^1.0" | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
<phpunit | ||
bootstrap="tests/bootstrap.php" | ||
backupGlobals="false" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="false" | ||
convertWarningsToExceptions="true" | ||
> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
beStrictAboutTestsThatDoNotTestAnything="true" | ||
beStrictAboutOutputDuringTests="true" | ||
bootstrap="tests/bootstrap.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
failOnRisky="true" | ||
failOnWarning="true" | ||
processIsolation="false" | ||
stopOnError="false" | ||
stopOnFailure="false" | ||
verbose="true" | ||
> | ||
<testsuites> | ||
<testsuite> | ||
<directory prefix="test-" suffix=".php">./tests/</directory> | ||
<testsuite name="WP imgix Test Suite"> | ||
<directory suffix=".php">./tests/cases</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist addUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">./src</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
<?php | ||
|
||
$_tests_dir = getenv( 'WP_TESTS_DIR' ); | ||
if ( ! $_tests_dir ) { | ||
$_tests_dir = '/tmp/wordpress-tests-lib'; | ||
} | ||
// Load Composer autoload. | ||
require __DIR__ . '/../vendor/autoload.php'; | ||
|
||
require_once $_tests_dir . '/includes/functions.php'; | ||
// Load Papi loader file as plugin. | ||
WP_Test_Suite::load_plugins( __DIR__ . '/../imgix.php' ); | ||
|
||
function _manually_load_plugin() { | ||
require dirname( dirname( __FILE__ ) ) . '/plugin/imgix.php'; | ||
} | ||
tests_add_filter( 'muplugins_loaded', '_manually_load_plugin' ); | ||
|
||
require $_tests_dir . '/includes/bootstrap.php'; | ||
// Run the WordPress test suite. | ||
WP_Test_Suite::run(); |
Oops, something went wrong.