Completed
Pull Request — master (#105)
by
unknown
08:51
created
appendixes/mysite/code/testing/FakeDatabase.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -82,6 +82,10 @@
 block discarded – undo
82 82
 		return $return;
83 83
 	}
84 84
 
85
+	/**
86
+	 * @param string $type
87
+	 * @param string $key
88
+	 */
85 89
 	public function get($type, $key) {
86 90
 		$data = $this->getData();
87 91
 		$return = (isset($data[$type][$key])) ? FakeObject::create_from_array($data[$type][$key]) : null;
Please login to merge, or discard this patch.
appendixes/mysite/code/testing/SampleFakeManager.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -97,6 +97,9 @@  discard block
 block discarded – undo
97 97
 		// Don't initialize client
98 98
 	}
99 99
 
100
+	/**
101
+	 * @param FakeDatabase $db
102
+	 */
100 103
 	public function setDb($db) {
101 104
 		$this->db = $db;
102 105
 	}
@@ -126,6 +129,9 @@  discard block
 block discarded – undo
126 129
 		// Don't initialize client
127 130
 	}
128 131
 
132
+	/**
133
+	 * @param FakeDatabase $db
134
+	 */
129 135
 	public function setDb($db) {
130 136
 		$this->db = $db;
131 137
 	}
Please login to merge, or discard this patch.
appendixes/mysite/tests/behat/features/bootstrap/Context/FeatureContext.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
     }
75 75
 
76 76
     /**
77
-     * @return FixtureFactory
77
+     * @return \FixtureFactory
78 78
      */
79 79
     public function getFixtureFactory() {
80 80
         if(!$this->fixtureFactory) {
Please login to merge, or discard this patch.
Unused Use Statements   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Mysite\Test\Behaviour;
4 4
 
5
-use SilverStripe\BehatExtension\Context\SilverStripeContext,
6
-    SilverStripe\BehatExtension\Context\BasicContext,
7
-    SilverStripe\BehatExtension\Context\LoginContext,
8
-    SilverStripe\BehatExtension\Context\FixtureContext,
9
-    SilverStripe\Framework\Test\Behaviour\CmsFormsContext,
10
-    SilverStripe\Framework\Test\Behaviour\CmsUiContext,
11
-    SilverStripe\Cms\Test\Behaviour;
5
+use SilverStripe\BehatExtension\Context\SilverStripeContext;
6
+use SilverStripe\BehatExtension\Context\BasicContext;
7
+use SilverStripe\BehatExtension\Context\LoginContext;
8
+use SilverStripe\BehatExtension\Context\FixtureContext;
9
+use SilverStripe\Framework\Test\Behaviour\CmsFormsContext;
10
+use SilverStripe\Framework\Test\Behaviour\CmsUiContext;
11
+use SilverStripe\Cms\Test\Behaviour;
12 12
 
13 13
 // PHPUnit
14 14
 require_once 'PHPUnit/Autoload.php';
Please login to merge, or discard this patch.