-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added 2 methods related to Activities
- Loading branch information
Emmanuel Dyan
committed
Jan 26, 2016
1 parent
be95c29
commit aeae6f9
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
namespace Inet\SugarCRM\Tests; | ||
|
||
use Inet\SugarCRM\EntryPoint; | ||
use Inet\SugarCRM\DB; | ||
use Inet\SugarCRM\System; | ||
|
||
class SystemTest extends SugarTestCase | ||
{ | ||
public function testRightInstanciation() | ||
{ | ||
// first load a bean | ||
$entryPoint = $this->getEntryPointInstance(); | ||
|
||
$system = new System($entryPoint); | ||
$this->assertTrue($system->isActivityEnabled()); | ||
$system->disableActivity(); | ||
$this->assertFalse($system->isActivityEnabled()); | ||
} | ||
} |