forked from adamwathan/bootforms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from avengers/develop
Changed adamwathan/form dependency to avengers/form
- Loading branch information
Showing
14 changed files
with
55 additions
and
55 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
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
use TheAvengers\BootForms\BasicFormBuilder; | ||
use AdamWathan\Form\FormBuilder; | ||
use TheAvengers\Form\FormBuilder; | ||
|
||
class BasicFormBuilderTest extends PHPUnit_Framework_TestCase | ||
{ | ||
|
@@ -35,7 +35,7 @@ public function testRenderTextGroupWithValue() | |
|
||
public function testRenderTextGroupWithError() | ||
{ | ||
$errorStore = Mockery::mock('AdamWathan\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore = Mockery::mock('TheAvengers\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore->shouldReceive('hasError')->andReturn(true); | ||
$errorStore->shouldReceive('getError')->andReturn('Email is required.'); | ||
|
||
|
@@ -48,7 +48,7 @@ public function testRenderTextGroupWithError() | |
|
||
public function testRenderTextGroupWithErrorOverridesCustomHelpBlock() | ||
{ | ||
$errorStore = Mockery::mock('AdamWathan\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore = Mockery::mock('TheAvengers\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore->shouldReceive('hasError')->andReturn(true); | ||
$errorStore->shouldReceive('getError')->andReturn('Email is required.'); | ||
|
||
|
@@ -61,7 +61,7 @@ public function testRenderTextGroupWithErrorOverridesCustomHelpBlock() | |
|
||
public function testRenderTextGroupWithOldInput() | ||
{ | ||
$oldInput = Mockery::mock('AdamWathan\Form\OldInput\OldInputInterface'); | ||
$oldInput = Mockery::mock('TheAvengers\Form\OldInput\OldInputInterface'); | ||
$oldInput->shouldReceive('hasOldInput')->andReturn(true); | ||
$oldInput->shouldReceive('getOldInput')->andReturn('[email protected]'); | ||
|
||
|
@@ -74,7 +74,7 @@ public function testRenderTextGroupWithOldInput() | |
|
||
public function testRenderTextGroupWithOldInputAndDefaultValue() | ||
{ | ||
$oldInput = Mockery::mock('AdamWathan\Form\OldInput\OldInputInterface'); | ||
$oldInput = Mockery::mock('TheAvengers\Form\OldInput\OldInputInterface'); | ||
$oldInput->shouldReceive('hasOldInput')->andReturn(true); | ||
$oldInput->shouldReceive('getOldInput')->andReturn('[email protected]'); | ||
|
||
|
@@ -94,13 +94,13 @@ public function testRenderTextGroupWithDefaultValue() | |
|
||
public function testRenderTextGroupWithOldInputAndError() | ||
{ | ||
$oldInput = Mockery::mock('AdamWathan\Form\OldInput\OldInputInterface'); | ||
$oldInput = Mockery::mock('TheAvengers\Form\OldInput\OldInputInterface'); | ||
$oldInput->shouldReceive('hasOldInput')->andReturn(true); | ||
$oldInput->shouldReceive('getOldInput')->andReturn('[email protected]'); | ||
|
||
$this->builder->setOldInputProvider($oldInput); | ||
|
||
$errorStore = Mockery::mock('AdamWathan\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore = Mockery::mock('TheAvengers\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore->shouldReceive('hasError')->andReturn(true); | ||
$errorStore->shouldReceive('getError')->andReturn('Email is required.'); | ||
|
||
|
@@ -120,7 +120,7 @@ public function testRenderPasswordGroup() | |
|
||
public function testRenderPasswordGroupDoesntKeepOldInput() | ||
{ | ||
$oldInput = Mockery::mock('AdamWathan\Form\OldInput\OldInputInterface'); | ||
$oldInput = Mockery::mock('TheAvengers\Form\OldInput\OldInputInterface'); | ||
$oldInput->shouldReceive('hasOldInput')->andReturn(true); | ||
$oldInput->shouldReceive('getOldInput')->andReturn('password'); | ||
|
||
|
@@ -133,7 +133,7 @@ public function testRenderPasswordGroupDoesntKeepOldInput() | |
|
||
public function testRenderPasswordGroupWithError() | ||
{ | ||
$errorStore = Mockery::mock('AdamWathan\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore = Mockery::mock('TheAvengers\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore->shouldReceive('hasError')->andReturn(true); | ||
$errorStore->shouldReceive('getError')->andReturn('Password is required.'); | ||
|
||
|
@@ -198,7 +198,7 @@ public function testRenderSelectWithSelected() | |
|
||
public function testRenderSelectWithError() | ||
{ | ||
$errorStore = Mockery::mock('AdamWathan\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore = Mockery::mock('TheAvengers\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore->shouldReceive('hasError')->andReturn(true); | ||
$errorStore->shouldReceive('getError')->andReturn('Color is required.'); | ||
|
||
|
@@ -213,7 +213,7 @@ public function testRenderSelectWithError() | |
|
||
public function testRenderSelectWithOldInput() | ||
{ | ||
$oldInput = Mockery::mock('AdamWathan\Form\OldInput\OldInputInterface'); | ||
$oldInput = Mockery::mock('TheAvengers\Form\OldInput\OldInputInterface'); | ||
$oldInput->shouldReceive('hasOldInput')->andReturn(true); | ||
$oldInput->shouldReceive('getOldInput')->andReturn('2'); | ||
|
||
|
@@ -235,7 +235,7 @@ public function testRenderCheckbox() | |
|
||
public function testRenderCheckboxWithError() | ||
{ | ||
$errorStore = Mockery::mock('AdamWathan\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore = Mockery::mock('TheAvengers\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore->shouldReceive('hasError')->andReturn(true); | ||
$errorStore->shouldReceive('getError')->andReturn('Must agree to terms.'); | ||
|
||
|
@@ -248,7 +248,7 @@ public function testRenderCheckboxWithError() | |
|
||
public function testRenderCheckboxWithOldInput() | ||
{ | ||
$oldInput = Mockery::mock('AdamWathan\Form\OldInput\OldInputInterface'); | ||
$oldInput = Mockery::mock('TheAvengers\Form\OldInput\OldInputInterface'); | ||
$oldInput->shouldReceive('hasOldInput')->andReturn(true); | ||
$oldInput->shouldReceive('getOldInput')->andReturn('1'); | ||
|
||
|
@@ -275,7 +275,7 @@ public function testRenderRadio() | |
|
||
public function testRenderRadioWithError() | ||
{ | ||
$errorStore = Mockery::mock('AdamWathan\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore = Mockery::mock('TheAvengers\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore->shouldReceive('hasError')->andReturn(true); | ||
$errorStore->shouldReceive('getError')->andReturn('Sample error'); | ||
|
||
|
@@ -287,7 +287,7 @@ public function testRenderRadioWithError() | |
|
||
public function testRenderRadioWithOldInput() | ||
{ | ||
$oldInput = Mockery::mock('AdamWathan\Form\OldInput\OldInputInterface'); | ||
$oldInput = Mockery::mock('TheAvengers\Form\OldInput\OldInputInterface'); | ||
$oldInput->shouldReceive('hasOldInput')->andReturn(true); | ||
$oldInput->shouldReceive('getOldInput')->andReturn('red'); | ||
|
||
|
@@ -321,7 +321,7 @@ public function testRenderTextareaWithCols() | |
|
||
public function testRenderTextareaWithOldInput() | ||
{ | ||
$oldInput = Mockery::mock('AdamWathan\Form\OldInput\OldInputInterface'); | ||
$oldInput = Mockery::mock('TheAvengers\Form\OldInput\OldInputInterface'); | ||
$oldInput->shouldReceive('hasOldInput')->andReturn(true); | ||
$oldInput->shouldReceive('getOldInput')->andReturn('Sample bio'); | ||
|
||
|
@@ -333,7 +333,7 @@ public function testRenderTextareaWithOldInput() | |
|
||
public function testRenderTextareaWithError() | ||
{ | ||
$errorStore = Mockery::mock('AdamWathan\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore = Mockery::mock('TheAvengers\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore->shouldReceive('hasError')->andReturn(true); | ||
$errorStore->shouldReceive('getError')->andReturn('Sample error'); | ||
|
||
|
@@ -486,7 +486,7 @@ public function testRenderFileGroup() | |
|
||
public function testRenderFileGroupWithError() | ||
{ | ||
$errorStore = Mockery::mock('AdamWathan\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore = Mockery::mock('TheAvengers\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore->shouldReceive('hasError')->andReturn(true); | ||
$errorStore->shouldReceive('getError')->andReturn('Sample error'); | ||
|
||
|
@@ -595,7 +595,7 @@ public function testRenderInputGroupWithValue() | |
|
||
public function testRenderInputGroupWithOldInput() | ||
{ | ||
$oldInput = Mockery::mock('AdamWathan\Form\OldInput\OldInputInterface'); | ||
$oldInput = Mockery::mock('TheAvengers\Form\OldInput\OldInputInterface'); | ||
$oldInput->shouldReceive('hasOldInput')->andReturn(true); | ||
$oldInput->shouldReceive('getOldInput')->andReturn('xyz'); | ||
|
||
|
@@ -608,7 +608,7 @@ public function testRenderInputGroupWithOldInput() | |
|
||
public function testRenderInputGroupWithOldInputAndDefaultValue() | ||
{ | ||
$oldInput = Mockery::mock('AdamWathan\Form\OldInput\OldInputInterface'); | ||
$oldInput = Mockery::mock('TheAvengers\Form\OldInput\OldInputInterface'); | ||
$oldInput->shouldReceive('hasOldInput')->andReturn(true); | ||
$oldInput->shouldReceive('getOldInput')->andReturn('xyz'); | ||
|
||
|
@@ -628,13 +628,13 @@ public function testRenderInputGroupWithDefaultValue() | |
|
||
public function testRenderInputGroupWithOldInputAndError() | ||
{ | ||
$oldInput = Mockery::mock('AdamWathan\Form\OldInput\OldInputInterface'); | ||
$oldInput = Mockery::mock('TheAvengers\Form\OldInput\OldInputInterface'); | ||
$oldInput->shouldReceive('hasOldInput')->andReturn(true); | ||
$oldInput->shouldReceive('getOldInput')->andReturn('abc'); | ||
|
||
$this->builder->setOldInputProvider($oldInput); | ||
|
||
$errorStore = Mockery::mock('AdamWathan\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore = Mockery::mock('TheAvengers\Form\ErrorStore\ErrorStoreInterface'); | ||
$errorStore->shouldReceive('hasError')->andReturn(true); | ||
$errorStore->shouldReceive('getError')->andReturn('Test is required.'); | ||
|
||
|
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
Oops, something went wrong.