Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/Concerns/ImpersonatesUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ trait ImpersonatesUsers
/**
* Set the currently logged in user for the application.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @param string|null $driver
* @return $this
*/
Expand All @@ -23,7 +22,6 @@ public function actingAs(UserContract $user, $driver = null)
/**
* Set the currently logged in user for the application.
*
* @param \Illuminate\Contracts\Auth\Authenticatable $user
* @param string|null $driver
* @return void
*/
Expand Down
4 changes: 0 additions & 4 deletions src/Concerns/InteractsWithAuthentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ protected function isAuthenticated($guard = null)
/**
* Assert that the user is authenticated as the given user.
*
* @param $user
* @param string|null $guard
* @return $this
*/
Expand All @@ -68,7 +67,6 @@ public function seeIsAuthenticatedAs($user, $guard = null)
/**
* Assert that the given credentials are valid.
*
* @param array $credentials
* @param string|null $guard
* @return $this
*/
Expand All @@ -84,7 +82,6 @@ public function seeCredentials(array $credentials, $guard = null)
/**
* Assert that the given credentials are invalid.
*
* @param array $credentials
* @param string|null $guard
* @return $this
*/
Expand All @@ -100,7 +97,6 @@ public function dontSeeCredentials(array $credentials, $guard = null)
/**
* Return true is the credentials are valid, false otherwise.
*
* @param array $credentials
* @param string|null $guard
* @return bool
*/
Expand Down
4 changes: 0 additions & 4 deletions src/Concerns/InteractsWithDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ trait InteractsWithDatabase
* Assert that a given where condition exists in the database.
*
* @param string $table
* @param array $data
* @param string $connection
* @return $this
*/
Expand All @@ -31,7 +30,6 @@ protected function seeInDatabase($table, array $data, $connection = null)
* Assert that a given where condition does not exist in the database.
*
* @param string $table
* @param array $data
* @param string $connection
* @return $this
*/
Expand All @@ -44,7 +42,6 @@ protected function missingFromDatabase($table, array $data, $connection = null)
* Assert that a given where condition does not exist in the database.
*
* @param string $table
* @param array $data
* @param string $connection
* @return $this
*/
Expand All @@ -57,7 +54,6 @@ protected function dontSeeInDatabase($table, array $data, $connection = null)
* Assert that a given where condition does not exist in the database.
*
* @param string $table
* @param array $data
* @param string $connection
* @return $this
*/
Expand Down
29 changes: 10 additions & 19 deletions src/Concerns/InteractsWithPages.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ trait InteractsWithPages
/**
* The DomCrawler instance.
*
* @var \Symfony\Component\DomCrawler\Crawler
* @var Crawler
*/
protected $crawler;

Expand Down Expand Up @@ -115,8 +115,6 @@ protected function resetPageContext()
/**
* Make a request to the application using the given form.
*
* @param \Symfony\Component\DomCrawler\Form $form
* @param array $uploads
* @return $this
*/
protected function makeRequestUsingForm(Form $form, array $uploads = [])
Expand All @@ -131,7 +129,6 @@ protected function makeRequestUsingForm(Form $form, array $uploads = [])
/**
* Extract the parameters from the given form.
*
* @param \Symfony\Component\DomCrawler\Form $form
* @return array
*/
protected function extractParametersFromForm(Form $form)
Expand Down Expand Up @@ -212,7 +209,7 @@ protected function seeRouteIs($route, $parameters = [])
* @param string|null $message
* @return void
*
* @throws \Laravel\BrowserKitTesting\HttpException
* @throws HttpException
*/
protected function assertPageLoaded($uri, $message = null)
{
Expand All @@ -235,7 +232,6 @@ protected function assertPageLoaded($uri, $message = null)
* Narrow the test content to a specific area of the page.
*
* @param string $element
* @param \Closure $callback
* @return $this
*/
public function within($element, Closure $callback)
Expand All @@ -252,7 +248,7 @@ public function within($element, Closure $callback)
/**
* Get the current crawler according to the test context.
*
* @return \Symfony\Component\DomCrawler\Crawler
* @return Crawler
*/
protected function crawler()
{
Expand All @@ -266,7 +262,6 @@ protected function crawler()
/**
* Assert the given constraint.
*
* @param \Laravel\BrowserKitTesting\Constraints\PageConstraint $constraint
* @param bool $reverse
* @param string $message
* @return $this
Expand Down Expand Up @@ -312,7 +307,6 @@ public function dontSee($text)
* Assert that an element is present on the page.
*
* @param string $selector
* @param array $attributes
* @param bool $negate
* @return $this
*/
Expand All @@ -325,7 +319,6 @@ public function seeElement($selector, array $attributes = [], $negate = false)
* Assert that an element is not present on the page.
*
* @param string $selector
* @param array $attributes
* @return $this
*/
public function dontSeeElement($selector, array $attributes = [])
Expand Down Expand Up @@ -499,7 +492,7 @@ public function dontSeeIsChecked($selector)
* @param string $name
* @return $this
*
* @throws \InvalidArgumentException
* @throws InvalidArgumentException
*/
protected function click($name)
{
Expand Down Expand Up @@ -611,7 +604,7 @@ protected function submitForm($buttonText, $inputs = [], $uploads = [])
*
* @param string $buttonText
* @param array $inputs
* @return \Symfony\Component\DomCrawler\Form
* @return Form
*/
protected function fillForm($buttonText, $inputs = [])
{
Expand All @@ -628,9 +621,9 @@ protected function fillForm($buttonText, $inputs = [])
* Get the form from the page with the given submit button text.
*
* @param string|null $buttonText
* @return \Symfony\Component\DomCrawler\Form
* @return Form
*
* @throws \InvalidArgumentException
* @throws InvalidArgumentException
*/
protected function getForm($buttonText = null)
{
Expand Down Expand Up @@ -671,7 +664,7 @@ protected function storeInput($element, $text)
* @param string $filter
* @return void
*
* @throws \InvalidArgumentException
* @throws InvalidArgumentException
*/
protected function assertFilterProducesResults($filter)
{
Expand All @@ -689,7 +682,7 @@ protected function assertFilterProducesResults($filter)
*
* @param string $name
* @param array|string $elements
* @return \Symfony\Component\DomCrawler\Crawler
* @return Crawler
*/
protected function filterByNameOrId($name, $elements = '*')
{
Expand All @@ -709,8 +702,6 @@ protected function filterByNameOrId($name, $elements = '*')
/**
* Convert the given uploads to UploadedFile instances.
*
* @param \Symfony\Component\DomCrawler\Form $form
* @param array $uploads
* @return array
*/
protected function convertUploadsForTesting(Form $form, array $uploads)
Expand Down Expand Up @@ -764,7 +755,7 @@ protected function prepareArrayBasedFileInput(&$uploads, $key, $file)
* @param array $file
* @param array $uploads
* @param string $name
* @return \Illuminate\Http\UploadedFile
* @return UploadedFile
*/
protected function getUploadedFileForTesting($file, $uploads, $name)
{
Expand Down
3 changes: 0 additions & 3 deletions src/Concerns/InteractsWithSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ trait InteractsWithSession
/**
* Set the session to the given array.
*
* @param array $data
* @return $this
*/
public function withSession(array $data)
Expand All @@ -22,7 +21,6 @@ public function withSession(array $data)
/**
* Set the session to the given array.
*
* @param array $data
* @return void
*/
public function session(array $data)
Expand Down Expand Up @@ -95,7 +93,6 @@ public function assertSessionHas($key, $value = null)
/**
* Assert that the session has a given list of values.
*
* @param array $bindings
* @return void
*/
public function assertSessionHasAll(array $bindings)
Expand Down
Loading