/**
  * @dataProvider testStorageDataProvider
  */
 public function testSetGetStorage($data, $condition, $insert, $insertCondition)
 {
     $this->company->setAttributes($data);
     $branch = new SlaveEmbeddedClass();
     $branch->setAttributes(['name' => $insert[0], 'value' => $insert[1]]);
     $this->company->many->set($condition, $branch);
     $this->assertEquals($this->company->many->get($insertCondition)->name, $insert[0]);
     $this->assertEquals($this->company->many->get($insertCondition)->value, $insert[1]);
 }
 public function behaviors()
 {
     return ['one' => ['class' => EmbedsOneBehavior::className(), 'attribute' => '_one', 'embedded' => SlaveEmbeddedClass::className()], 'many' => ['class' => EmbedsManyBehavior::className(), 'attribute' => '_many', 'initEmptyScenarios' => ['create', 'update'], 'embedded' => SlaveEmbeddedClass::className()]];
 }