Skip to content

Commit 2ab96f0

Browse files
committed
Merge pull request #84 from jildertmiedema/patch-2
functions are declared in the interface, should be public
2 parents 144f140 + 05465d5 commit 2ab96f0

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/Extensions/IntegrationTrait.php

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ protected function assertSee($text, $message, $negate = false)
135135
* @return static
136136
* @throws PHPUnitException
137137
*/
138-
protected function see($text)
138+
public function see($text)
139139
{
140140
return $this->assertSee($text, sprintf(
141141
"Could not find '%s' on the page, '%s'.", $text, $this->currentPage
@@ -149,7 +149,7 @@ protected function see($text)
149149
* @return static
150150
* @throws PHPUnitException
151151
*/
152-
protected function notSee($text)
152+
public function notSee($text)
153153
{
154154
return $this->assertSee($text, sprintf(
155155
"Could not find '%s' on the page, '%s'.", $text, $this->currentPage
@@ -164,7 +164,7 @@ protected function notSee($text)
164164
* @param boolean $negate
165165
* @return static
166166
*/
167-
protected function assertPageIs($uri, $message, $negate = false)
167+
public function assertPageIs($uri, $message, $negate = false)
168168
{
169169
$this->assertPageLoaded($uri = $this->prepareUrl($uri));
170170

@@ -181,7 +181,7 @@ protected function assertPageIs($uri, $message, $negate = false)
181181
* @param string $uri
182182
* @return static
183183
*/
184-
protected function seePageIs($uri)
184+
public function seePageIs($uri)
185185
{
186186
return $this->assertPageIs(
187187
$uri, "Expected to be on the page, {$uri}, but wasn't."
@@ -194,7 +194,7 @@ protected function seePageIs($uri)
194194
* @param string $uri
195195
* @return static
196196
*/
197-
protected function notSeePageIs($uri)
197+
public function notSeePageIs($uri)
198198
{
199199
return $this->assertPageIs(
200200
$uri, "Expected to NOT be on the page, {$uri}, but was.", true
@@ -207,7 +207,7 @@ protected function notSeePageIs($uri)
207207
* @param string $page
208208
* @return static
209209
*/
210-
protected function onPage($page)
210+
public function onPage($page)
211211
{
212212
return $this->seePageIs($page);
213213
}
@@ -218,7 +218,7 @@ protected function onPage($page)
218218
* @param string $name
219219
* @return static
220220
*/
221-
protected function click($name)
221+
public function click($name)
222222
{
223223
$link = $this->crawler->selectLink($name);
224224

@@ -247,7 +247,7 @@ protected function click($name)
247247
* @param string $text
248248
* @return static
249249
*/
250-
protected function follow($text)
250+
public function follow($text)
251251
{
252252
return $this->click($text);
253253
}
@@ -259,7 +259,7 @@ protected function follow($text)
259259
* @param string $element
260260
* @return static
261261
*/
262-
protected function type($text, $element)
262+
public function type($text, $element)
263263
{
264264
return $this->storeInput($element, $text);
265265
}
@@ -271,7 +271,7 @@ protected function type($text, $element)
271271
* @param string $element
272272
* @return static
273273
*/
274-
protected function fill($text, $element)
274+
public function fill($text, $element)
275275
{
276276
return $this->type($text, $element);
277277
}
@@ -282,7 +282,7 @@ protected function fill($text, $element)
282282
* @param string $element
283283
* @return static
284284
*/
285-
protected function check($element)
285+
public function check($element)
286286
{
287287
return $this->storeInput($element, true);
288288
}
@@ -293,7 +293,7 @@ protected function check($element)
293293
* @param string $element
294294
* @return static
295295
*/
296-
protected function tick($element)
296+
public function tick($element)
297297
{
298298
return $this->check($element);
299299
}
@@ -305,7 +305,7 @@ protected function tick($element)
305305
* @param string $option
306306
* @return static
307307
*/
308-
protected function select($element, $option)
308+
public function select($element, $option)
309309
{
310310
return $this->storeInput($element, $option);
311311
}
@@ -317,7 +317,7 @@ protected function select($element, $option)
317317
* @param string $absolutePath
318318
* @return static
319319
*/
320-
protected function attachFile($element, $absolutePath)
320+
public function attachFile($element, $absolutePath)
321321
{
322322
return $this->storeInput($element, $absolutePath);
323323
}
@@ -346,7 +346,7 @@ protected function storeInput($name, $value)
346346
* @param string $buttonText
347347
* @return static
348348
*/
349-
protected function press($buttonText)
349+
public function press($buttonText)
350350
{
351351
return $this->submitForm($buttonText, $this->inputs);
352352
}
@@ -356,7 +356,7 @@ protected function press($buttonText)
356356
*
357357
* @return void
358358
*/
359-
protected function dump()
359+
public function dump()
360360
{
361361
$this->logLatestContent();
362362

@@ -469,7 +469,7 @@ protected function assertFilterProducedResults($filter)
469469
* @param string $path
470470
* @return static
471471
*/
472-
protected function seeFile($path)
472+
public function seeFile($path)
473473
{
474474
$this->assertFileExists($path);
475475

@@ -482,7 +482,7 @@ protected function seeFile($path)
482482
* @param string $path
483483
* @return static
484484
*/
485-
protected function notSeeFile($path)
485+
public function notSeeFile($path)
486486
{
487487
$this->assertFileNotExists($path);
488488

@@ -498,7 +498,7 @@ protected function notSeeFile($path)
498498
* @param boolean $negate
499499
* @return static
500500
*/
501-
protected function assertInDatabase($table, array $data, $message, $negate = false)
501+
public function assertInDatabase($table, array $data, $message, $negate = false)
502502
{
503503
$count = $this->seeRowsWereReturned($table, $data);
504504
$method = $negate ? 'assertEquals' : 'assertGreaterThan';
@@ -515,7 +515,7 @@ protected function assertInDatabase($table, array $data, $message, $negate = fal
515515
* @param array $data
516516
* @return static
517517
*/
518-
protected function seeInDatabase($table, array $data)
518+
public function seeInDatabase($table, array $data)
519519
{
520520
return $this->assertInDatabase($table, $data, sprintf(
521521
"Didn't see row in the '%s' table that matched the attributes '%s'.",
@@ -530,7 +530,7 @@ protected function seeInDatabase($table, array $data)
530530
* @param array $data
531531
* @return static
532532
*/
533-
protected function notSeeInDatabase($table, array $data)
533+
public function notSeeInDatabase($table, array $data)
534534
{
535535
return $this->assertInDatabase($table, $data, sprintf(
536536
"Found row(s) in the '%s' table that matched the attributes '%s', but did not expect to.",
@@ -545,7 +545,7 @@ protected function notSeeInDatabase($table, array $data)
545545
* @param array $data
546546
* @return static
547547
*/
548-
protected function verifyInDatabase($table, array $data)
548+
public function verifyInDatabase($table, array $data)
549549
{
550550
return $this->seeInDatabase($table, $data);
551551
}
@@ -557,7 +557,7 @@ protected function verifyInDatabase($table, array $data)
557557
* @param array $data
558558
* @return static
559559
*/
560-
protected function notVerifyInDatabase($table, array $data)
560+
public function notVerifyInDatabase($table, array $data)
561561
{
562562
return $this->notSeeInDatabase($table, $data);
563563
}

0 commit comments

Comments
 (0)