-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
42 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,15 @@ | |
|
||
namespace TypiCMS\Form\Tests; | ||
|
||
use DateTime; | ||
use Mockery; | ||
use PHPUnit\Framework\TestCase; | ||
use stdClass; | ||
use TypiCMS\Form\FormBuilder; | ||
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class BindingTest extends TestCase | ||
|
@@ -461,8 +463,8 @@ private function getStubObject() | |
$obj->email = '[email protected]'; | ||
$obj->first_name = 'John'; | ||
$obj->last_name = 'Doe'; | ||
$obj->date_of_birth = new \DateTime('1985-05-06'); | ||
$obj->date_and_time_of_birth = new \DateTime('1985-05-06 16:39'); | ||
$obj->date_of_birth = new DateTime('1985-05-06'); | ||
$obj->date_and_time_of_birth = new DateTime('1985-05-06 16:39'); | ||
$obj->gender = 'male'; | ||
$obj->terms = 'agree'; | ||
$obj->color = 'green'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class ButtonTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class CheckboxTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class DateTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class DateTimeLocalTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class EmailTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class FileTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class FormBuilderTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class FormOpenTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class HiddenTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class IlluminateErrorStoreTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class LabelTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class NumberTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class OldInputTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class PasswordTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class RadioButtonTest extends TestCase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,19 +10,19 @@ public function testDefaultValue() | |
{ | ||
$text = $this->newTestSubjectInstance('email'); | ||
|
||
$expected = '<input type="'.$this->getTestSubjectType().'" name="email" value="[email protected]">'; | ||
$expected = '<input type="' . $this->getTestSubjectType() . '" name="email" value="[email protected]">'; | ||
$result = $text->defaultValue('[email protected]')->render(); | ||
$this->assertEquals($expected, $result); | ||
|
||
$text = $this->newTestSubjectInstance('email'); | ||
|
||
$expected = '<input type="'.$this->getTestSubjectType().'" name="email" value="[email protected]">'; | ||
$expected = '<input type="' . $this->getTestSubjectType() . '" name="email" value="[email protected]">'; | ||
$result = $text->value('[email protected]')->defaultValue('[email protected]')->render(); | ||
$this->assertEquals($expected, $result); | ||
|
||
$text = $this->newTestSubjectInstance('email'); | ||
|
||
$expected = '<input type="'.$this->getTestSubjectType().'" name="email" value="[email protected]">'; | ||
$expected = '<input type="' . $this->getTestSubjectType() . '" name="email" value="[email protected]">'; | ||
$result = $text->defaultValue('[email protected]')->value('[email protected]')->render(); | ||
$this->assertEquals($expected, $result); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
/** | ||
* @internal | ||
* | ||
* @coversNothing | ||
*/ | ||
class TextTest extends TestCase | ||
|