@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | private $pulse; |
| 17 | 17 | |
| 18 | - public static function invalidColorValueProvider() |
|
| 18 | + public static function invalidColorValueProvider () |
|
| 19 | 19 | { |
| 20 | 20 | return array( |
| 21 | 21 | array(-1), |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | ); |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | - public static function invalidTextProvider() |
|
| 28 | + public static function invalidTextProvider () |
|
| 29 | 29 | { |
| 30 | 30 | return [ |
| 31 | 31 | [new \stdClass()], |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | ]; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - public static function invalidNumericProvider() |
|
| 36 | + public static function invalidNumericProvider () |
|
| 37 | 37 | { |
| 38 | 38 | return [ |
| 39 | 39 | ['hello'], |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | ]; |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | - public static function invalidDateTimeProvider() |
|
| 46 | + public static function invalidDateTimeProvider () |
|
| 47 | 47 | { |
| 48 | 48 | return [ |
| 49 | 49 | [1483228800], |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | ]; |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - public static function invalidPersonProvider() |
|
| 56 | + public static function invalidPersonProvider () |
|
| 57 | 57 | { |
| 58 | 58 | return [ |
| 59 | 59 | [130.4], |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | ]; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - public static function invalidTimelineProvider() |
|
| 67 | + public static function invalidTimelineProvider () |
|
| 68 | 68 | { |
| 69 | 69 | return [ |
| 70 | 70 | [new \DateTime('2017-01-01'), null], |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | ]; |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | - public function setUp() |
|
| 75 | + public function setUp () |
|
| 76 | 76 | { |
| 77 | 77 | parent::setUp(); |
| 78 | 78 | |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | $this->pulse = new Pulse(27168882); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - public function testSettingStatusColumn() |
|
| 83 | + public function testSettingStatusColumn () |
|
| 84 | 84 | { |
| 85 | 85 | $value = PulseColumnStatusValue::Gold; |
| 86 | 86 | $column = $this->pulse->getStatusColumn('status'); |
@@ -92,14 +92,14 @@ discard block |
||
| 92 | 92 | /** |
| 93 | 93 | * @dataProvider invalidColorValueProvider |
| 94 | 94 | */ |
| 95 | - public function testSettingStatusColumnWithWrongTypes($color) |
|
| 95 | + public function testSettingStatusColumnWithWrongTypes ($color) |
|
| 96 | 96 | { |
| 97 | 97 | $this->setExpectedException('\InvalidArgumentException'); |
| 98 | 98 | |
| 99 | 99 | $this->pulse->getStatusColumn('status')->updateValue($color); |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - public function testSettingTextColumn() |
|
| 102 | + public function testSettingTextColumn () |
|
| 103 | 103 | { |
| 104 | 104 | $value = 'Elastic Water Bottle'; |
| 105 | 105 | $column = $this->pulse->getTextColumn('text'); |
@@ -111,14 +111,14 @@ discard block |
||
| 111 | 111 | /** |
| 112 | 112 | * @dataProvider invalidTextProvider |
| 113 | 113 | */ |
| 114 | - public function testSettingTextColumnWithWrongTypes($value) |
|
| 114 | + public function testSettingTextColumnWithWrongTypes ($value) |
|
| 115 | 115 | { |
| 116 | 116 | $this->setExpectedException(\InvalidArgumentException::class); |
| 117 | 117 | |
| 118 | 118 | $this->pulse->getTextColumn('text')->updateValue($value); |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | - public function testSettingNumericColumn() |
|
| 121 | + public function testSettingNumericColumn () |
|
| 122 | 122 | { |
| 123 | 123 | $value = 25; |
| 124 | 124 | $column = $this->pulse->getNumericColumn('numbers'); |
@@ -130,14 +130,14 @@ discard block |
||
| 130 | 130 | /** |
| 131 | 131 | * @dataProvider invalidNumericProvider |
| 132 | 132 | */ |
| 133 | - public function testSettingNumericColumnWithWrongTypes($value) |
|
| 133 | + public function testSettingNumericColumnWithWrongTypes ($value) |
|
| 134 | 134 | { |
| 135 | 135 | $this->setExpectedException(\InvalidArgumentException::class); |
| 136 | 136 | |
| 137 | 137 | $this->pulse->getNumericColumn('numbers')->updateValue($value); |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | - public function testSettingDateColumn() |
|
| 140 | + public function testSettingDateColumn () |
|
| 141 | 141 | { |
| 142 | 142 | $value = new \DateTime('2017-02-01'); |
| 143 | 143 | $column = $this->pulse->getDateColumn('due_date'); |
@@ -149,14 +149,14 @@ discard block |
||
| 149 | 149 | /** |
| 150 | 150 | * @dataProvider invalidDateTimeProvider |
| 151 | 151 | */ |
| 152 | - public function testSettingDateColumnWithWrongTypes($value) |
|
| 152 | + public function testSettingDateColumnWithWrongTypes ($value) |
|
| 153 | 153 | { |
| 154 | 154 | $this->setExpectedException(\InvalidArgumentException::class); |
| 155 | 155 | |
| 156 | 156 | $this->pulse->getDateColumn('due_date')->updateValue($value); |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | - public function testSettingTimelineColumn() |
|
| 159 | + public function testSettingTimelineColumn () |
|
| 160 | 160 | { |
| 161 | 161 | $from = new \DateTime('2016-01-01'); |
| 162 | 162 | $to = new \DateTime('2016-01-26'); |
@@ -169,14 +169,14 @@ discard block |
||
| 169 | 169 | /** |
| 170 | 170 | * @dataProvider invalidTimelineProvider |
| 171 | 171 | */ |
| 172 | - public function testSettingTimelineColumnWithWrongTypes($dateOne, $dateTwo) |
|
| 172 | + public function testSettingTimelineColumnWithWrongTypes ($dateOne, $dateTwo) |
|
| 173 | 173 | { |
| 174 | 174 | $this->setExpectedException(\InvalidArgumentException::class); |
| 175 | 175 | |
| 176 | 176 | $this->pulse->getTimelineColumn('timeline')->updateValue($dateOne, $dateTwo); |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | - public function testSettingPersonColumnFromInt() |
|
| 179 | + public function testSettingPersonColumnFromInt () |
|
| 180 | 180 | { |
| 181 | 181 | $column = $this->pulse->getPersonColumn('person'); |
| 182 | 182 | $column->updateValue($this->userId); |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | $this->assertEquals($this->userId, $column->getValue()->getId()); |
| 185 | 185 | } |
| 186 | 186 | |
| 187 | - public function testSettingPersonColumnFromObject() |
|
| 187 | + public function testSettingPersonColumnFromObject () |
|
| 188 | 188 | { |
| 189 | 189 | $user = new PulseUser($this->userId); |
| 190 | 190 | $column = $this->pulse->getPersonColumn('person'); |
@@ -196,14 +196,14 @@ discard block |
||
| 196 | 196 | /** |
| 197 | 197 | * @dataProvider invalidPersonProvider |
| 198 | 198 | */ |
| 199 | - public function testSettingPersonColumnWithWrongTypes($value) |
|
| 199 | + public function testSettingPersonColumnWithWrongTypes ($value) |
|
| 200 | 200 | { |
| 201 | 201 | $this->setExpectedException(\InvalidArgumentException::class); |
| 202 | 202 | |
| 203 | 203 | $this->pulse->getPersonColumn('person')->updateValue($value); |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | - public function testSettingNonExistentColumn() |
|
| 206 | + public function testSettingNonExistentColumn () |
|
| 207 | 207 | { |
| 208 | 208 | $this->markTestIncomplete('I need to get the response from DaPulse to create the mock'); |
| 209 | 209 | |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | $this->setExpectedException(\InvalidArgumentException::class); |
| 29 | 29 | |
| 30 | - $this->pulse->addNote(self::$title, self::$content, true, NULL, true); |
|
| 30 | + $this->pulse->addNote(self::$title, self::$content, true, null, true); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | public function testCreateNote () |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | private $pulses; |
| 26 | 26 | |
| 27 | - public function setUp() |
|
| 27 | + public function setUp () |
|
| 28 | 28 | { |
| 29 | 29 | parent::setUp(); |
| 30 | 30 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $this->pulses = $this->board->getPulses(); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - public function testGetNameColumnValues() |
|
| 38 | + public function testGetNameColumnValues () |
|
| 39 | 39 | { |
| 40 | 40 | $expectedValues = array( |
| 41 | 41 | "Mock Pulse One", |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - public function testGetTextColumnValues() |
|
| 54 | + public function testGetTextColumnValues () |
|
| 55 | 55 | { |
| 56 | 56 | $expectedValues = array( |
| 57 | 57 | "Silver Pet Rock", |
@@ -67,24 +67,24 @@ discard block |
||
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - public function testGetPersonColumnValues() |
|
| 70 | + public function testGetPersonColumnValues () |
|
| 71 | 71 | { |
| 72 | 72 | $user = new PulseUser($this->userId); |
| 73 | 73 | |
| 74 | 74 | $this->assertEquals($user, $this->pulses[0]->getPersonColumn('person')->getValue()); |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - public function testGetPersonNullColumn() |
|
| 77 | + public function testGetPersonNullColumn () |
|
| 78 | 78 | { |
| 79 | 79 | $this->assertNull($this->pulses[1]->getPersonColumn('person')->getValue()); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - public function testGetDateNullColumn() |
|
| 82 | + public function testGetDateNullColumn () |
|
| 83 | 83 | { |
| 84 | 84 | $this->assertNull($this->pulses[2]->getDateColumn('due_date')->getValue()); |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - public function testGetDateColumnValues() |
|
| 87 | + public function testGetDateColumnValues () |
|
| 88 | 88 | { |
| 89 | 89 | $date = array( |
| 90 | 90 | new \DateTime("2017-01-03"), |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $this->assertEquals($date[2], $this->pulses[2]->getDateColumn('due_date')->getValue()); |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | - public function testGetStatusColumnValues() |
|
| 100 | + public function testGetStatusColumnValues () |
|
| 101 | 101 | { |
| 102 | 102 | $expectedValues = array( |
| 103 | 103 | PulseColumnStatusValue::Orange, |
@@ -113,18 +113,18 @@ discard block |
||
| 113 | 113 | } |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | - public function testGetNumericColumnValue() |
|
| 116 | + public function testGetNumericColumnValue () |
|
| 117 | 117 | { |
| 118 | 118 | $this->assertEquals(100.5, $this->pulses[0]->getNumericColumn('numbers')->getValue()); |
| 119 | 119 | $this->assertEquals(50, $this->pulses[1]->getNumericColumn('numbers')->getValue()); |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | - public function testGetNumericColumnNullValue() |
|
| 122 | + public function testGetNumericColumnNullValue () |
|
| 123 | 123 | { |
| 124 | 124 | $this->assertNull($this->pulses[2]->getNumericColumn('numbers')->getValue()); |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | - public function testGetTimelineColumnValue() |
|
| 127 | + public function testGetTimelineColumnValue () |
|
| 128 | 128 | { |
| 129 | 129 | $this->assertEquals([ |
| 130 | 130 | 'from' => new \DateTime('2017-01-09'), |
@@ -132,26 +132,26 @@ discard block |
||
| 132 | 132 | ], $this->pulses[0]->getTimelineColumn('timeline')->getValue()); |
| 133 | 133 | } |
| 134 | 134 | |
| 135 | - public function testGetTimelineColumnNullValue() |
|
| 135 | + public function testGetTimelineColumnNullValue () |
|
| 136 | 136 | { |
| 137 | 137 | $this->assertNull($this->pulses[1]->getTimelineColumn('timeline')->getValue()); |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | - public function testGetBadColumnType() |
|
| 140 | + public function testGetBadColumnType () |
|
| 141 | 141 | { |
| 142 | 142 | $this->setExpectedException('allejo\DaPulse\Exceptions\InvalidObjectException'); |
| 143 | 143 | |
| 144 | 144 | PulseColumnValue::_createColumnType("non-existent", array()); |
| 145 | 145 | } |
| 146 | 146 | |
| 147 | - public function testGetNonExistentColumn() |
|
| 147 | + public function testGetNonExistentColumn () |
|
| 148 | 148 | { |
| 149 | 149 | $this->setExpectedException('allejo\DaPulse\Exceptions\ColumnNotFoundException'); |
| 150 | 150 | |
| 151 | 151 | $this->pulses[1]->getDateColumn("non-existent")->getValue(); |
| 152 | 152 | } |
| 153 | 153 | |
| 154 | - public function testGetWrongColumnType() |
|
| 154 | + public function testGetWrongColumnType () |
|
| 155 | 155 | { |
| 156 | 156 | $this->setExpectedException('allejo\DaPulse\Exceptions\InvalidColumnException'); |
| 157 | 157 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | const SecondUser = 361981; |
| 14 | 14 | const BoardId = 3844236; |
| 15 | 15 | |
| 16 | - public function setUp() |
|
| 16 | + public function setUp () |
|
| 17 | 17 | { |
| 18 | 18 | $authClient = new AuthenticatedClient("phpunit-auth.json"); |
| 19 | 19 | |
@@ -36,44 +36,44 @@ discard block |
||
| 36 | 36 | VCR::turnOff(); |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - protected function assertIsInt($expected, $message = "") |
|
| 39 | + protected function assertIsInt ($expected, $message = "") |
|
| 40 | 40 | { |
| 41 | 41 | $this->assertTrue(is_int($expected), $message); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - protected function assertIsString($expected, $message = "") |
|
| 44 | + protected function assertIsString ($expected, $message = "") |
|
| 45 | 45 | { |
| 46 | 46 | $this->assertTrue(is_string($expected), $message); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - protected function assertIsArray($expected, $message = "") |
|
| 49 | + protected function assertIsArray ($expected, $message = "") |
|
| 50 | 50 | { |
| 51 | 51 | $this->assertTrue(is_array($expected), $message); |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | - protected function assertCountEqual($expected, $actual, $message = "") |
|
| 54 | + protected function assertCountEqual ($expected, $actual, $message = "") |
|
| 55 | 55 | { |
| 56 | 56 | $this->assertEquals($expected, count($actual), $message); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - protected function assertCountLessThan($expected, $actual, $message = "") |
|
| 59 | + protected function assertCountLessThan ($expected, $actual, $message = "") |
|
| 60 | 60 | { |
| 61 | 61 | $this->assertLessThan($expected, count($actual), $message); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - protected function assertCountGreaterThan($expected, $actual, $message = "") |
|
| 64 | + protected function assertCountGreaterThan ($expected, $actual, $message = "") |
|
| 65 | 65 | { |
| 66 | 66 | $this->assertGreaterThan($expected, count($actual), $message); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - protected function assertPulseObjectType($instanceName, $actual, $message = "") |
|
| 69 | + protected function assertPulseObjectType ($instanceName, $actual, $message = "") |
|
| 70 | 70 | { |
| 71 | - $instanceOf = "allejo\\DaPulse\\" . $instanceName; |
|
| 71 | + $instanceOf = "allejo\\DaPulse\\".$instanceName; |
|
| 72 | 72 | |
| 73 | 73 | $this->assertInstanceOf($instanceOf, $actual, $message); |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | - protected function assertPulseArrayContains($needle, $haystack, $message = "") |
|
| 76 | + protected function assertPulseArrayContains ($needle, $haystack, $message = "") |
|
| 77 | 77 | { |
| 78 | 78 | $resultFound = false; |
| 79 | 79 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | */ |
| 27 | 27 | private $pulses; |
| 28 | 28 | |
| 29 | - public function setUp() |
|
| 29 | + public function setUp () |
|
| 30 | 30 | { |
| 31 | 31 | parent::setUp(); |
| 32 | 32 | |
@@ -35,71 +35,71 @@ discard block |
||
| 35 | 35 | $this->pulses = $this->board->getPulses(); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - public function testGetBoardUrl() |
|
| 38 | + public function testGetBoardUrl () |
|
| 39 | 39 | { |
| 40 | - $expectedURL = "https://phppulse.dapulse.com/boards/" . $this->id; |
|
| 40 | + $expectedURL = "https://phppulse.dapulse.com/boards/".$this->id; |
|
| 41 | 41 | $this->assertEquals($expectedURL, $this->board->getUrl()); |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - public function testGetBoardId() |
|
| 44 | + public function testGetBoardId () |
|
| 45 | 45 | { |
| 46 | 46 | $this->assertEquals($this->id, $this->board->getId()); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - public function testGetBoardName() |
|
| 49 | + public function testGetBoardName () |
|
| 50 | 50 | { |
| 51 | 51 | $expectedValue = "API Mocks"; |
| 52 | 52 | $this->assertEquals($expectedValue, $this->board->getName()); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - public function testGetBoardDescription() |
|
| 55 | + public function testGetBoardDescription () |
|
| 56 | 56 | { |
| 57 | 57 | $expectedValue = "A DaPulse board used for unit testing and providing mocks for the PhpPulse library we use and maintain"; |
| 58 | 58 | $this->assertEquals($expectedValue, $this->board->getDescription()); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | - public function testGetBoardColumnsCount() |
|
| 61 | + public function testGetBoardColumnsCount () |
|
| 62 | 62 | { |
| 63 | 63 | $this->assertCountGreaterThan(0, $this->board->getColumns()); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - public function testGetBoardColumnsType() |
|
| 66 | + public function testGetBoardColumnsType () |
|
| 67 | 67 | { |
| 68 | 68 | $column = $this->board->getColumns(); |
| 69 | 69 | |
| 70 | 70 | $this->assertInstanceOf(PulseColumn::class, $column[0]); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | - public function testGetBoardGroupType() |
|
| 73 | + public function testGetBoardGroupType () |
|
| 74 | 74 | { |
| 75 | 75 | $group = $this->board->getGroups(); |
| 76 | 76 | |
| 77 | 77 | $this->assertInstanceOf(PulseGroup::class, $group[0]); |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | - public function testGetBoardCreatedAt() |
|
| 80 | + public function testGetBoardCreatedAt () |
|
| 81 | 81 | { |
| 82 | 82 | $this->assertInstanceOf(\DateTime::class, $this->board->getCreatedAt()); |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | - public function testGetBoardUpdatedAt() |
|
| 85 | + public function testGetBoardUpdatedAt () |
|
| 86 | 86 | { |
| 87 | 87 | $this->assertInstanceOf(\DateTime::class, $this->board->getUpdatedAt()); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - public function testGetPulses() |
|
| 90 | + public function testGetPulses () |
|
| 91 | 91 | { |
| 92 | 92 | $this->assertCountEqual(4, $this->pulses); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | - public function testGroupOfPulseWithApiCall() |
|
| 95 | + public function testGroupOfPulseWithApiCall () |
|
| 96 | 96 | { |
| 97 | 97 | $newPulse = new Pulse(27157096); |
| 98 | 98 | |
| 99 | 99 | $this->assertEquals('topics', $newPulse->getGroupId()); |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - public function testGetBoardColumns() |
|
| 102 | + public function testGetBoardColumns () |
|
| 103 | 103 | { |
| 104 | 104 | $columns = $this->board->getColumns(); |
| 105 | 105 | |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | $this->assertInstanceOf(PulseColumn::class, $columns[0]); |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | - public function testGetBoardStatusColumnLabels() |
|
| 111 | + public function testGetBoardStatusColumnLabels () |
|
| 112 | 112 | { |
| 113 | 113 | $columns = $this->board->getColumns(); |
| 114 | 114 | $labels = $columns[2]->getLabels(); |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | $this->assertCount(11, $labels); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | - public function testGetBoardTextColumnLabelsThrowsException() |
|
| 119 | + public function testGetBoardTextColumnLabelsThrowsException () |
|
| 120 | 120 | { |
| 121 | 121 | $this->setExpectedException(InvalidColumnException::class); |
| 122 | 122 | |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | $columns[0]->getLabels(); |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | - public function testGetBoardGroups() |
|
| 127 | + public function testGetBoardGroups () |
|
| 128 | 128 | { |
| 129 | 129 | $groups = $this->board->getGroups(); |
| 130 | 130 | |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $this->assertEquals($this->board->getId(), $group_one->getBoardId()); |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | - public function testGetBoardGroupsIncludingArchived() |
|
| 141 | + public function testGetBoardGroupsIncludingArchived () |
|
| 142 | 142 | { |
| 143 | 143 | $groups = $this->board->getGroups(true); |
| 144 | 144 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $this->assertTrue($groups[2]->isArchived()); |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | - public function testBoardCreateStatusColumn() |
|
| 151 | + public function testBoardCreateStatusColumn () |
|
| 152 | 152 | { |
| 153 | 153 | $board = new PulseBoard(27168881, true); |
| 154 | 154 | $board->createColumn('Overall Status', PulseColumn::Status, [ |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $this->assertCount(9, $columns); |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | - public function testBoardCreateTextColumnWithLabelsThrowsException() |
|
| 163 | + public function testBoardCreateTextColumnWithLabelsThrowsException () |
|
| 164 | 164 | { |
| 165 | 165 | $this->setExpectedException(ArgumentMismatchException::class); |
| 166 | 166 | |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | ]); |
| 171 | 171 | } |
| 172 | 172 | |
| 173 | - public function testBoardCreateStatusColumnWithInvalidColumns() |
|
| 173 | + public function testBoardCreateStatusColumnWithInvalidColumns () |
|
| 174 | 174 | { |
| 175 | 175 | $this->setExpectedException(InvalidArraySizeException::class); |
| 176 | 176 | |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | ]); |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | - public function testBoardCreateGroup() |
|
| 184 | + public function testBoardCreateGroup () |
|
| 185 | 185 | { |
| 186 | 186 | $boardID = 27168881; |
| 187 | 187 | $title = 'My new group'; |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | $this->assertFalse($group->isDeleted()); |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | - public function testBoardDeleteGroup() |
|
| 198 | + public function testBoardDeleteGroup () |
|
| 199 | 199 | { |
| 200 | 200 | $groupID = 'my_new_group'; |
| 201 | 201 | $board = new PulseBoard(27168881, true); |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | } |
| 212 | 212 | } |
| 213 | 213 | |
| 214 | - public function testBoardCreatePulse() |
|
| 214 | + public function testBoardCreatePulse () |
|
| 215 | 215 | { |
| 216 | 216 | $title = 'Turn off the lights'; |
| 217 | 217 | $board = new PulseBoard(27168881); |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | $this->assertEquals('topics', $pulse->getGroupId()); |
| 224 | 224 | } |
| 225 | 225 | |
| 226 | - public function testBoardCreation() |
|
| 226 | + public function testBoardCreation () |
|
| 227 | 227 | { |
| 228 | 228 | $name = 'A New Bored'; |
| 229 | 229 | $desc = 'A purposeful typo'; |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | $this->assertEquals($desc, $newBoard->getDescription()); |
| 235 | 235 | } |
| 236 | 236 | |
| 237 | - public function testBoardDeletionMarksObjectAsDeleted() |
|
| 237 | + public function testBoardDeletionMarksObjectAsDeleted () |
|
| 238 | 238 | { |
| 239 | 239 | $this->setExpectedException(InvalidObjectException::class); |
| 240 | 240 | |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | $board->archiveBoard(); |
| 244 | 244 | } |
| 245 | 245 | |
| 246 | - public function testBoardGetAll() |
|
| 246 | + public function testBoardGetAll () |
|
| 247 | 247 | { |
| 248 | 248 | $boards = PulseBoard::getBoards(); |
| 249 | 249 | |