Skip to content

Commit

Permalink
because of a Laravel 9 testing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mlantz committed Feb 8, 2022
1 parent 5db406c commit 1b5a50d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
"matthiasmullie/minify": "^1.3"
},
"require-dev": {
"phpunit/phpunit": "^9.5.8",
"phpunit/phpunit": "^9.5.10",
"mockery/mockery": "^1.0",
"mikey179/vfsstream": "^1.6",
"orchestra/database": "^5.0|^6.0",
"orchestra/testbench": "^5.0|^6.0",
"orchestra/database": "^5.0|^6.0|^7.0",
"orchestra/testbench": "^5.0|^6.0|^7.0",
"nunomaduro/phpinsights": "^2.0",
"nunomaduro/collision": "^5.10"
"nunomaduro/collision": "^5.10|^6.0"
},
"autoload": {
"psr-4": {
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,5 @@ public function setUp(): void
]);

$this->withoutMiddleware();
$this->withoutEvents();
}
}
14 changes: 7 additions & 7 deletions tests/Unit/FormExtensiveBaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ public function setUp(): void

public function testMake()
{
// $form = $this->form->make();
$form = $this->form->make();

// $this->assertStringContainsString('http://localhost/user/sample', $form);
// $this->assertStringContainsString('method="POST"', $form);
$this->assertStringContainsString('http://localhost/user/sample', $form);
$this->assertStringContainsString('method="POST"', $form);

// $this->assertStringContainsString('<form method="POST" action="http://localhost/user/sample" accept-charset="UTF-8" class="batman">', $form);
// $this->assertStringContainsString('<div class="form-group"><label class="control-label" for="Name">Name</label>', $form);
// $this->assertStringContainsString('<input class="form-control" id="Name" name="name" type="text" value=""></div>', $form);
// $this->assertStringContainsString('<div class="col-md-12 d-flex justify-content-end"><button class="superman" type="submit">Save <span class="fas fa-save"></span></button></div></div></form>', $form);
$this->assertStringContainsString('<form method="POST" action="http://localhost/user/sample" accept-charset="UTF-8" class="batman">', $form);
$this->assertStringContainsString('<div class="form-group"><label class="control-label" for="Name">Name</label>', $form);
$this->assertStringContainsString('<input class="form-control" id="Name" name="name" type="text" value=""></div>', $form);
$this->assertStringContainsString('<div class="col-md-12 d-flex justify-content-end"><button class="superman" type="submit">Save <span class="fas fa-save"></span></button></div></div></form>', $form);
}

public function testMakeWithExtras()
Expand Down

0 comments on commit 1b5a50d

Please sign in to comment.