Пример #1
0
 public function testRightInstanciation()
 {
     $system = new System($this->getEntryPointInstance());
     // Activity
     $this->assertTrue($system->isActivityEnabled());
     $system->disableActivity();
     $this->assertFalse($system->isActivityEnabled());
     // Logger
     $logger = $system->getLogger();
     $this->assertInstanceOf('Psr\\Log\\NullLogger', $logger);
     // EntryPoint
     $ep = $system->getEntryPoint();
     $this->assertInstanceOf('\\Inet\\SugarCRM\\EntryPoint', $ep);
 }