Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Nov 29, 2024
1 parent 32eef4e commit 1c28887
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
4 changes: 1 addition & 3 deletions tests/FieldsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ public function testCreate()
$this->assertInstanceOf('Pop\Form\Element\Input\Range', $range);
}

/**
* @runInSeparateProcess
*/
#[runInSeparateProcess]
public function testCreateCsrfAndCaptcha()
{
$_SERVER['REQUEST_METHOD'] = 'POST';
Expand Down
4 changes: 1 addition & 3 deletions tests/FormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,7 @@ public function testToString()
$this->assertStringContainsString('<form', $result);
}

/**
* @runInSeparateProcess
*/
#[runInSeparateProcess]
public function testClear()
{
$form = Form::createFromConfig([
Expand Down
8 changes: 2 additions & 6 deletions tests/InputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,7 @@ public function testRemoveReadonly()
$this->assertFalse($input->isReadonly());
}

/**
* @runInSeparateProcess
*/
#[runInSeparateProcess]
public function testCaptcha()
{
$_SERVER['REQUEST_METHOD'] = 'GET';
Expand All @@ -236,9 +234,7 @@ public function testCaptcha()
$this->assertTrue(is_array($input->getToken()));
}

/**
* @runInSeparateProcess
*/
#[runInSeparateProcess]
public function testCsrf()
{
$_SERVER['REQUEST_METHOD'] = 'GET';
Expand Down

0 comments on commit 1c28887

Please sign in to comment.