public function testProcedureIsStoredForExecution() { $Procedure = $this->getMock(self::CoreObjectNamespace . 'IProcedure'); $Procedure->expects($this->any())->method('GetEntityType')->will($this->returnValue(self::EntityType)); $this->UnitOfWork->Execute($Procedure); $this->assertContains($Procedure, $this->UnitOfWork->GetExecutedProcedures()); }