From 38835c5f524a5dfd77d67ac6fcde2c7cc978fcfc Mon Sep 17 00:00:00 2001 From: Ahmad Awais Date: Thu, 15 Oct 2015 00:42:42 +0500 Subject: [PATCH] Scrtunizer Added, Test path corrected --- README.md | 1 + package.json | 12 ++++++------ tests/bootstrap.php | 4 ++-- tests/test_wordpress_plugin_tests.php | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e41b466..b942bb9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ #CF7 Customizer [![License](https://img.shields.io/badge/license-GPL--2.0%2B-red.svg)](https://github.com/WPTie/CF7Customizer/blob/master/license.txt) [![Build Status](https://travis-ci.org/WPTie/CF7Customizer.svg?branch=master)](https://travis-ci.org/WPTie/CF7Customizer) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/WPTie/CF7Customizer/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/WPTie/CF7Customizer/?branch=master) [![Dependency Status](https://david-dm.org/WPTie/CF7Customizer.svg)](https://david-dm.org/WPTie/CF7Customizer) [![devDependency Status](https://david-dm.org/WPTie/CF7Customizer/dev-status.svg)](https://david-dm.org/WPTie/CF7Customizer#info=devDependencies) [![WordPress.org Repo Version](https://img.shields.io/wordpress/plugin/v/cf7-customizer.svg)](https://wordpress.org/plugins/cf7-customizer/) diff --git a/package.json b/package.json index 1c01080..1f105a4 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "CF7Customizer", "version": "1.0.0", - "repository" : { + "repository": { "type": "git", - "url" : "https://github.com/WPTie/CF7Customizer.git" - }, + "url": "https://github.com/WPTie/CF7Customizer.git" + }, "dependencies": { "del": "^2.0.2" }, @@ -17,7 +17,7 @@ "gulp-concat": "^2.6.0", "gulp-filesize": "0.0.6", "gulp-filter": "^3.0.1", - "gulp-ignore": "^1.2.1", + "gulp-ignore": "^2.0.1", "gulp-imagemin": "^2.3.0", "gulp-jshint": "^1.11.2", "gulp-livereload": "^3.8.0", @@ -25,14 +25,14 @@ "gulp-newer": "^0.5.1", "gulp-notify": "^2.2.0", "gulp-phpcs": "^0.7.0", - "gulp-pixrem": "^0.2.3", + "gulp-pixrem": "^1.0.0", "gulp-plumber": "^1.0.1", "gulp-rename": "^1.2.2", "gulp-sass": "^2.0.4", "gulp-sourcemaps": "^1.5.2", "gulp-uglify": "^1.4.1", "gulp-uglifycss": "^1.0.4", - "gulp-uncss": "^1.0.3", + "gulp-uncss": "^1.0.4", "gulp-util": "^3.0.6", "gulp-wp-rev": "0.0.1", "gulp-zip": "^3.0.2", diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 032cfb8..be68941 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -8,7 +8,7 @@ */ // Activates this plugin in WordPress so it can be tested. -$GLOBALS['wp_tests_options'] = array( +$GLOBALS[ 'wp_tests_options' ] = array( 'active_plugins' => array( 'cf7-customizer/cf7-customizer.php' ), ); @@ -16,7 +16,7 @@ // location. Otherwise, we'll just assume that this plugin is installed in a // WordPress develop SVN checkout. -if( false !== getenv( 'WP_DEVELOP_DIR' ) ) { +if ( false !== getenv( 'WP_DEVELOP_DIR' ) ) { require getenv( 'WP_DEVELOP_DIR' ) . '/tests/phpunit/includes/bootstrap.php'; } else { require '../../../../tests/phpunit/includes/bootstrap.php'; diff --git a/tests/test_wordpress_plugin_tests.php b/tests/test_wordpress_plugin_tests.php index bab8187..806315c 100644 --- a/tests/test_wordpress_plugin_tests.php +++ b/tests/test_wordpress_plugin_tests.php @@ -45,7 +45,7 @@ function test_wp_version() { */ function test_plugin_activated() { - $this->assertTrue( is_plugin_active( 'plugin-slug/main-plugin-file.php' ) ); + $this->assertTrue( is_plugin_active( 'cf7-customizer/cf7-customizer.php' ) ); }