コード例 #1
0
ファイル: WorkflowTest.php プロジェクト: ayoah/symfony
 public function testGetMarkingWithExistingMarking()
 {
     $definition = $this->createComplexWorkflow();
     $subject = new \stdClass();
     $subject->marking = null;
     $subject->marking = array('b' => 1, 'c' => 1);
     $workflow = new Workflow($definition, new PropertyAccessorMarkingStore());
     $marking = $workflow->getMarking($subject);
     $this->assertInstanceOf(Marking::class, $marking);
     $this->assertTrue($marking->has('b'));
     $this->assertTrue($marking->has('c'));
 }