/** * @depends testInitializeRepositoryWithManualStrategy * @param SampleRepository2 $repository * @return SampleEntity2 */ public function testInsertEntityWithManualStrategy($repository) { $entity = SampleEntity2::fromArray(array('key1' => 1, 'key2' => 2, 'column' => 'Test')); $this->assertInstanceOf('DataMonkey\\Tests\\Mocks\\SampleEntity2', $repository->save($entity)); return $entity; }
public function create($options = null) { return SampleEntity2::factory($options); }