예제 #1
0
 public function testGeneratedEventNameIsReturnedWhenNoEventNameIsDefined()
 {
     $instance = new DummyCanPush();
     $this->assertSame('test.system.pushable.dummy_can_push', $instance->getPushableEventType());
     $instance = new BrandSelection();
     $this->assertSame('gamma.brand_selection', $instance->getPushableEventType());
 }
예제 #2
0
 /**
  * @param BrandSelection $selection
  */
 public function handle(BrandSelection $selection)
 {
     $instance = $selection->newInstance(['account_id' => $this->account->id]);
     //create the selections
     $this->brand->selection()->save($instance);
 }