Skip to content

Commit

Permalink
Merge branch 'main' of github.com-private:sinnbeck/laravel-dom-assert…
Browse files Browse the repository at this point in the history
…ions into main
  • Loading branch information
sinnbeck committed Oct 19, 2022
2 parents 44cd251 + 17d7176 commit 4f81f07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Asserts/FormAssert.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function hasAction(string $action): self

public function hasMethod(string $method): self
{
if (!in_array(strtolower($method), ['get', 'post'])) {
if (! in_array(strtolower($method), ['get', 'post'])) {
return $this->hasSpoofMethod($method);
}
PHPUnit::assertEquals(
Expand All @@ -64,7 +64,6 @@ public function hasMethod(string $method): self
return $this;
}


public function hasSpoofMethod(string $type): self
{
$element = $this->parser->query('input[type="hidden"][name="_method"]');
Expand Down

0 comments on commit 4f81f07

Please sign in to comment.