Completed
Push — master ( 0cb291...9bc524 )
by J.D.
14s queued 10s
created
tests/phpunit/includes/mocks.php 1 patch
Indentation   +82 added lines, -82 removed lines patch added patch discarded remove patch
@@ -14,88 +14,88 @@
 block discarded – undo
14 14
  */
15 15
 class WordPoints_Importer_Mock extends WordPoints_Importer {
16 16
 
17
-	/**
18
-	 * @since 1.0.0
19
-	 */
20
-	public $components;
21
-
22
-	/**
23
-	 * The "imports" performed.
24
-	 *
25
-	 * @since 1.0.0
26
-	 *
27
-	 * @var array
28
-	 */
29
-	public $imports = array();
30
-
31
-	/**
32
-	 * The "imports" for that were checked for possible performance.
33
-	 *
34
-	 * @since 1.0.0
35
-	 *
36
-	 * @var array
37
-	 */
38
-	public $can_imports;
39
-
40
-	/**
41
-	 * Whether this importer is available.
42
-	 *
43
-	 * @since 1.0.0
44
-	 *
45
-	 * @var true|WP_Error
46
-	 */
47
-	public $is_available = true;
48
-
49
-	/**
50
-	 * @since 1.0.0
51
-	 */
52
-	public function is_available() {
53
-		return $this->is_available;
54
-	}
55
-
56
-	/**
57
-	 * Mock an import method.
58
-	 *
59
-	 * @since 1.0.0
60
-	 *
61
-	 * @param array $settings The settings for this "component".
62
-	 */
63
-	public function do_an_import( $settings ) {
64
-
65
-		$this->imports[] = $settings;
66
-	}
67
-
68
-	/**
69
-	 * Mock a can_import method.
70
-	 *
71
-	 * @since 1.0.0
72
-	 *
73
-	 * @param array $settings The settings for this "component".
74
-	 *
75
-	 * @return true
76
-	 */
77
-	public function can_import( $settings ) {
78
-
79
-		$this->can_imports[] = $settings;
80
-
81
-		return true;
82
-	}
83
-
84
-	/**
85
-	 * Return a WP_Error because we can't do the import for an option.
86
-	 *
87
-	 * @since 1.0.0
88
-	 *
89
-	 * @param array $settings The settings for this "component".
90
-	 *
91
-	 * @return WP_Error An error.
92
-	 */
93
-	public function cant_import( $settings ) {
94
-
95
-		$this->can_imports[] = $settings;
96
-
97
-		return new WP_Error();
98
-	}
17
+    /**
18
+     * @since 1.0.0
19
+     */
20
+    public $components;
21
+
22
+    /**
23
+     * The "imports" performed.
24
+     *
25
+     * @since 1.0.0
26
+     *
27
+     * @var array
28
+     */
29
+    public $imports = array();
30
+
31
+    /**
32
+     * The "imports" for that were checked for possible performance.
33
+     *
34
+     * @since 1.0.0
35
+     *
36
+     * @var array
37
+     */
38
+    public $can_imports;
39
+
40
+    /**
41
+     * Whether this importer is available.
42
+     *
43
+     * @since 1.0.0
44
+     *
45
+     * @var true|WP_Error
46
+     */
47
+    public $is_available = true;
48
+
49
+    /**
50
+     * @since 1.0.0
51
+     */
52
+    public function is_available() {
53
+        return $this->is_available;
54
+    }
55
+
56
+    /**
57
+     * Mock an import method.
58
+     *
59
+     * @since 1.0.0
60
+     *
61
+     * @param array $settings The settings for this "component".
62
+     */
63
+    public function do_an_import( $settings ) {
64
+
65
+        $this->imports[] = $settings;
66
+    }
67
+
68
+    /**
69
+     * Mock a can_import method.
70
+     *
71
+     * @since 1.0.0
72
+     *
73
+     * @param array $settings The settings for this "component".
74
+     *
75
+     * @return true
76
+     */
77
+    public function can_import( $settings ) {
78
+
79
+        $this->can_imports[] = $settings;
80
+
81
+        return true;
82
+    }
83
+
84
+    /**
85
+     * Return a WP_Error because we can't do the import for an option.
86
+     *
87
+     * @since 1.0.0
88
+     *
89
+     * @param array $settings The settings for this "component".
90
+     *
91
+     * @return WP_Error An error.
92
+     */
93
+    public function cant_import( $settings ) {
94
+
95
+        $this->can_imports[] = $settings;
96
+
97
+        return new WP_Error();
98
+    }
99 99
 }
100 100
 
101 101
 // EOF
Please login to merge, or discard this patch.
tests/phpunit/includes/bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,27 +12,27 @@
 block discarded – undo
12 12
  *
13 13
  * @since 1.2.1
14 14
  */
15
-require_once WORDPOINTS_IMPORTER_TESTS_DIR . '/../../src/admin/admin.php';
15
+require_once WORDPOINTS_IMPORTER_TESTS_DIR.'/../../src/admin/admin.php';
16 16
 
17 17
 /**
18 18
  * Feedback object used in the tests.
19 19
  *
20 20
  * @since 1.0.0
21 21
  */
22
-require_once WORDPOINTS_IMPORTER_TESTS_DIR . '/includes/feedback.php';
22
+require_once WORDPOINTS_IMPORTER_TESTS_DIR.'/includes/feedback.php';
23 23
 
24 24
 /**
25 25
  * Mocks used in the tests.
26 26
  *
27 27
  * @since 1.0.0
28 28
  */
29
-require_once WORDPOINTS_IMPORTER_TESTS_DIR . '/includes/mocks.php';
29
+require_once WORDPOINTS_IMPORTER_TESTS_DIR.'/includes/mocks.php';
30 30
 
31 31
 /**
32 32
  * Testcase for testing hooks.
33 33
  *
34 34
  * @since 1.2.0
35 35
  */
36
-require_once WORDPOINTS_IMPORTER_TESTS_DIR . '/includes/testcases/hook.php';
36
+require_once WORDPOINTS_IMPORTER_TESTS_DIR.'/includes/testcases/hook.php';
37 37
 
38 38
 // EOF
Please login to merge, or discard this patch.