@@ -31,9 +31,6 @@ public function testQueryOk()
31
31
$ this ->assertIsInt ($ firstBuild ->buildNum ());
32
32
$ this ->assertIsString ($ firstBuild ->branch ());
33
33
$ this ->assertIsString ($ firstBuild ->vcsRevision ());
34
- $ this ->assertIsString ($ firstBuild ->committerName ());
35
- $ this ->assertIsString ($ firstBuild ->committerEmail ());
36
- $ this ->assertIsString ($ firstBuild ->body ());
37
34
$ this ->assertIsString ($ firstBuild ->why ());
38
35
$ this ->assertNull ($ firstBuild ->dontBuild ());
39
36
if (null !== $ firstBuild ->queuedAt ()) {
@@ -60,13 +57,13 @@ public function testMaxResults()
60
57
$ personalToken = $ _ENV ['CIRCLECI_PERSONNAL_TOKEN ' ];
61
58
$ client = new Client ($ personalToken , 'v1.1 ' );
62
59
$ query = new BuildSummaryForBranch ($ client );
63
- $ builds = $ this ->executeWithRetry ($ query , ['github ' , 'jmleroux ' , 'circleci-php-client ' , 'master ' , [], 8 ]);
64
- $ this ->assertCount (8 , $ builds );
60
+ $ builds = $ this ->executeWithRetry ($ query , ['github ' , 'jmleroux ' , 'circleci-php-client ' , 'master ' , [], 2 ]);
61
+ $ this ->assertCount (2 , $ builds );
65
62
66
- $ builds = $ query ->execute ('github ' , 'jmleroux ' , 'circleci-php-client ' , 'master ' , [], 50 );
67
- $ this ->assertCount (50 , $ builds );
63
+ $ builds = $ query ->execute ('github ' , 'jmleroux ' , 'circleci-php-client ' , 'master ' , [], 8 );
64
+ $ this ->assertCount (8 , $ builds );
68
65
69
- $ builds = $ query ->execute ('github ' , 'jmleroux ' , 'circleci-php-client ' , 'master ' , ['limit ' => 6 ], 22 );
70
- $ this ->assertCount (22 , $ builds );
66
+ $ builds = $ query ->execute ('github ' , 'jmleroux ' , 'circleci-php-client ' , 'master ' , ['limit ' => 6 ], 8 );
67
+ $ this ->assertCount (8 , $ builds );
71
68
}
72
69
}
0 commit comments