public function testGetAndSetTableOperations()
 {
     $model = new EloquentModelStub();
     $this->assertEquals('stub', $model->getTable());
     $model->setTable('foo');
     $this->assertEquals('foo', $model->getTable());
 }
Beispiel #2
0
 public function testIsWithAnotherTable()
 {
     $firstInstance = new EloquentModelStub(['id' => 1]);
     $secondInstance = new EloquentModelStub(['id' => 1]);
     $secondInstance->setTable('foo');
     $result = $firstInstance->is($secondInstance);
     $this->assertFalse($result);
 }