canEvaluate() public method

public canEvaluate ( $context ) : boolean
return boolean TRUE if the operation can be applied onto the $context, FALSE otherwise
 /**
  * @test
  */
 public function canEvaluateReturnsTrueIfNodeIsInContext()
 {
     $mockNode = $this->createMock(NodeInterface::class);
     $result = $this->operation->canEvaluate(array($mockNode));
     $this->assertTrue($result);
 }