diff --git a/tests/FactoryTest.php b/tests/FactoryTest.php new file mode 100644 index 0000000..49f9af2 --- /dev/null +++ b/tests/FactoryTest.php @@ -0,0 +1,31 @@ +assertInstanceOf(DataBag::class, $databag); + } + + /** + * @test + */ + public function it_can_be_statically_constructed() + { + $databag = DataBag::fromEntityData('Foo', ['bar' => 'baz']); + $this->assertSame('baz', $databag->get('Foo.bar')); + } +}