Skip to content

Commit

Permalink
Merge branch '5.4' of github.com:laravel/framework into 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 2, 2017
2 parents f7c6b89 + fdb7ef6 commit 4fbf774
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Console/stubs/jobs.stub
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Create{{tableClassName}}Table extends Migration
$table->bigIncrements('id');
$table->string('queue');
$table->longText('payload');
$table->tinyInteger('attempts')->unsigned();
$table->unsignedTinyInteger('attempts');
$table->unsignedInteger('reserved_at')->nullable();
$table->unsignedInteger('available_at');
$table->unsignedInteger('created_at');
Expand Down
2 changes: 1 addition & 1 deletion tests/Database/DatabaseEloquentBelongsToManyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function testModelsAreProperlyMatchedToParents()
$this->assertEquals(2, $models[1]->foo[0]->pivot->user_id);
$this->assertEquals(2, $models[1]->foo[1]->pivot->user_id);
$this->assertEquals(2, count($models[1]->foo));
$this->assertEquals(0, count((array) $models[2]->foo));
$this->assertNull($models[2]->foo);
}

public function testRelationIsProperlyInitialized()
Expand Down
2 changes: 1 addition & 1 deletion tests/Database/DatabaseEloquentHasManyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public function testModelsAreProperlyMatchedToParents()
$this->assertEquals(2, $models[1]->foo[0]->foreign_key);
$this->assertEquals(2, $models[1]->foo[1]->foreign_key);
$this->assertEquals(2, count($models[1]->foo));
$this->assertEquals(0, count((array) $models[2]->foo));
$this->assertNull($models[2]->foo);
}

public function testCreateManyCreatesARelatedModelForEachRecord()
Expand Down
4 changes: 2 additions & 2 deletions tests/Database/DatabaseEloquentHasManyThroughTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function testModelsAreProperlyMatchedToParents()
$this->assertEquals(2, $models[1]->foo[0]->country_id);
$this->assertEquals(2, $models[1]->foo[1]->country_id);
$this->assertEquals(2, count($models[1]->foo));
$this->assertEquals(0, count((array) $models[2]->foo));
$this->assertNull($models[2]->foo);
}

public function testModelsAreProperlyMatchedToParentsWithNonPrimaryKey()
Expand Down Expand Up @@ -129,7 +129,7 @@ public function testModelsAreProperlyMatchedToParentsWithNonPrimaryKey()
$this->assertEquals(2, $models[1]->foo[0]->country_id);
$this->assertEquals(2, $models[1]->foo[1]->country_id);
$this->assertEquals(2, count($models[1]->foo));
$this->assertEquals(0, count((array) $models[2]->foo));
$this->assertNull($models[2]->foo);
}

public function testAllColumnsAreSelectedByDefault()
Expand Down

0 comments on commit 4fbf774

Please sign in to comment.