markTestSkipped('Skip this test'); $SM = new StudioModule("Documents"); try { $SM->removeFieldFromLayouts("aFieldThatDoesntExist"); $this->assertTrue(true); } catch (Exception $e) { //Studio module threw exception $this->assertTrue(true); } } public function providerGetType() { return array( array('Meetings', 'basic'), array('Calls', 'basic'), array('Accounts', 'company'), array('Contacts', 'person'), array('Leads', 'person'), array('Cases', 'basic'), ); } /** * @ticket 50977 * * @dataProvider providerGetType */ public function testGetTypeFunction($module, $type) { $SM = new StudioModule($module); $this->assertEquals($type, $SM->getType(), 'Failed asserting that module:' . $module . ' is of type:' . $type); } }