public function testCreateWithEmbedsManyAssociation()
{
$this->phactory->define('tag', array('name' => 'Test Tag'));
$this->phactory->define('blog', array('title' => 'Test Title'), array('tags' => $this->phactory->embedsMany('tag')));
$tag = $this->phactory->build('tag');
$blog = $this->phactory->createWithAssociations('blog', array('tags' => array($tag)));
$this->assertEquals('Test Tag', $blog['tags'][0]['name']);
$this->db->blogs->drop();
}