| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3fb9c13 commit e6073df
10 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -482,6 +482,7 @@ public function testAddingTimeStamps() | |||
| 482 | 482 | $this->assertEquals('alter table `users` add `created_at` timestamp default 0 not null, add `updated_at` timestamp default 0 not null', $statements[0]); | |
| 483 | 483 | } | |
| 484 | 484 | ||
| 485 | + | ||
| 485 | 486 | public function testAddingRememberToken() | |
| 486 | 487 | { | |
| 487 | 488 | $blueprint = new Blueprint('users'); | |
@@ -492,6 +493,7 @@ public function testAddingRememberToken() | |||
| 492 | 493 | $this->assertEquals('alter table `users` add `remember_token` varchar(100) null', $statements[0]); | |
| 493 | 494 | } | |
| 494 | 495 | ||
| 496 | + | ||
| 495 | 497 | public function testAddingBinary() | |
| 496 | 498 | { | |
| 497 | 499 | $blueprint = new Blueprint('users'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -379,6 +379,7 @@ public function testAddingTimeStamps() | |||
| 379 | 379 | $this->assertEquals($expected, $statements); | |
| 380 | 380 | } | |
| 381 | 381 | ||
| 382 | + | ||
| 382 | 383 | public function testAddingRememberToken() | |
| 383 | 384 | { | |
| 384 | 385 | $blueprint = new Blueprint('users'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -403,6 +403,7 @@ public function testAddingTimeStamps() | |||
| 403 | 403 | $this->assertEquals('alter table "users" add "created_at" datetime not null, "updated_at" datetime not null', $statements[0]); | |
| 404 | 404 | } | |
| 405 | 405 | ||
| 406 | + | ||
| 406 | 407 | public function testAddingRememberToken() | |
| 407 | 408 | { | |
| 408 | 409 | $blueprint = new Blueprint('users'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,6 +12,7 @@ public function testEncryption() | |||
| 12 | 12 | $this->assertTrue('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' == $e->decrypt($encrypted)); | |
| 13 | 13 | } | |
| 14 | 14 | ||
| 15 | + | ||
| 15 | 16 | public function testEncryptionWithCustomCipher() | |
| 16 | 17 | { | |
| 17 | 18 | $e = $this->getEncrypter(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,6 +13,7 @@ protected function setUp() | |||
| 13 | 13 | $this->handler = new Handler($this->responsePreparer, $this->plainDisplayer, $this->debugDisplayer); | |
| 14 | 14 | } | |
| 15 | 15 | ||
| 16 | + | ||
| 16 | 17 | public function testHandleErrorExceptionArguments() | |
| 17 | 18 | { | |
| 18 | 19 | $error = null; | |
@@ -28,6 +29,7 @@ public function testHandleErrorExceptionArguments() | |||
| 28 | 29 | $this->assertSame(0, $error->getCode(), 'error handler should use 0 exception code'); | |
| 29 | 30 | } | |
| 30 | 31 | ||
| 32 | + | ||
| 31 | 33 | public function testHandleErrorOptionalArguments() | |
| 32 | 34 | { | |
| 33 | 35 | $error = null; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,7 @@ public function testPaginationContextIsSetupCorrectly() | |||
| 21 | 21 | $this->assertEquals(1, $p->getCurrentPage()); | |
| 22 | 22 | } | |
| 23 | 23 | ||
| 24 | + | ||
| 24 | 25 | public function testSimplePagination() | |
| 25 | 26 | { | |
| 26 | 27 | $p = new Paginator($factory = m::mock('Illuminate\Pagination\Factory'), ['foo', 'bar', 'baz'], 2); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,6 +44,7 @@ public function setUp() { | |||
| 44 | 44 | 'MessageId' => $this->mockedMessageId)))); | |
| 45 | 45 | } | |
| 46 | 46 | ||
| 47 | + | ||
| 47 | 48 | public function testPopProperlyPopsJobOffOfSqs() | |
| 48 | 49 | { | |
| 49 | 50 | $queue = $this->getMock('Illuminate\Queue\SqsQueue', array('getQueue'), array($this->sqs, $this->queueName, $this->account)); | |
@@ -54,6 +55,7 @@ public function testPopProperlyPopsJobOffOfSqs() | |||
| 54 | 55 | $this->assertInstanceOf('Illuminate\Queue\Jobs\SqsJob', $result); | |
| 55 | 56 | } | |
| 56 | 57 | ||
| 58 | + | ||
| 57 | 59 | public function testDelayedPushWithDateTimeProperlyPushesJobOntoSqs() | |
| 58 | 60 | { | |
| 59 | 61 | $now = Carbon\Carbon::now(); | |
@@ -66,6 +68,7 @@ public function testDelayedPushWithDateTimeProperlyPushesJobOntoSqs() | |||
| 66 | 68 | $this->assertEquals($this->mockedMessageId, $id); | |
| 67 | 69 | } | |
| 68 | 70 | ||
| 71 | + | ||
| 69 | 72 | public function testDelayedPushProperlyPushesJobOntoSqs() | |
| 70 | 73 | { | |
| 71 | 74 | $queue = $this->getMock('Illuminate\Queue\SqsQueue', array('createPayload', 'getSeconds', 'getQueue'), array($this->sqs, $this->queueName, $this->account)); | |
@@ -77,6 +80,7 @@ public function testDelayedPushProperlyPushesJobOntoSqs() | |||
| 77 | 80 | $this->assertEquals($this->mockedMessageId, $id); | |
| 78 | 81 | } | |
| 79 | 82 | ||
| 83 | + | ||
| 80 | 84 | public function testPushProperlyPushesJobOntoSqs() | |
| 81 | 85 | { | |
| 82 | 86 | $queue = $this->getMock('Illuminate\Queue\SqsQueue', array('createPayload', 'getQueue'), array($this->sqs, $this->queueName, $this->account)); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -226,6 +226,7 @@ public function testDataGet() | |||
| 226 | 226 | $this->assertEquals('Not found', data_get($array, '0.users.3', function (){ return 'Not found'; })); | |
| 227 | 227 | } | |
| 228 | 228 | ||
| 229 | + | ||
| 229 | 230 | public function testArraySort() | |
| 230 | 231 | { | |
| 231 | 232 | $array = array( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,13 +19,15 @@ private function createObjectForTrait() | |||
| 19 | 19 | return $this->getObjectForTrait($traitName); | |
| 20 | 20 | } | |
| 21 | 21 | ||
| 22 | + | ||
| 22 | 23 | public function testRegisterMacro() | |
| 23 | 24 | { | |
| 24 | 25 | $macroTrait = $this->macroTrait; | |
| 25 | 26 | $macroTrait::macro(__CLASS__, function() { return 'Taylor'; }); | |
| 26 | 27 | $this->assertEquals('Taylor', $macroTrait::{__CLASS__}()); | |
| 27 | 28 | } | |
| 28 | 29 | ||
| 30 | + | ||
| 29 | 31 | public function testResgisterMacroAndCallWithoutStatic() | |
| 30 | 32 | { | |
| 31 | 33 | $macroTrait = $this->macroTrait; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -126,6 +126,7 @@ public function testAttributeNamesAreReplaced() | |||
| 126 | 126 | $this->assertEquals('Name is required!', $v->messages()->first('name')); | |
| 127 | 127 | } | |
| 128 | 128 | ||
| 129 | + | ||
| 129 | 130 | public function testDisplayableValuesAreReplaced() | |
| 130 | 131 | { | |
| 131 | 132 | //required_if:foo,bar | |
@@ -149,6 +150,7 @@ public function testDisplayableValuesAreReplaced() | |||
| 149 | 150 | ||
| 150 | 151 | } | |
| 151 | 152 | ||
| 153 | + | ||
| 152 | 154 | public function testCustomValidationLinesAreRespected() | |
| 153 | 155 | { | |
| 154 | 156 | $trans = $this->getRealTranslator(); | |
@@ -1000,6 +1002,7 @@ public function testValidateAlphaDash() | |||
| 1000 | 1002 | ||
| 1001 | 1003 | } | |
| 1002 | 1004 | ||
| 1005 | + | ||
| 1003 | 1006 | public function testValidateTimezone() | |
| 1004 | 1007 | { | |
| 1005 | 1008 | $trans = $this->getRealTranslator(); | |
@@ -1019,6 +1022,7 @@ public function testValidateTimezone() | |||
| 1019 | 1022 | $this->assertTrue($v->passes()); | |
| 1020 | 1023 | } | |
| 1021 | 1024 | ||
| 1025 | + | ||
| 1022 | 1026 | public function testValidateRegex() | |
| 1023 | 1027 | { | |
| 1024 | 1028 | $trans = $this->getRealTranslator(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments