Completed
Push — master ( e3e0ef...5ff605 )
by Vladimir
04:49
created
tests/PulseBoardTestCase.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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.monday.com/boards/" . $this->id;
40
+        $expectedURL = "https://phppulse.monday.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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.