public function test_create_framework() { $this->resetAfterTest(true); $lpg = $this->getDataGenerator()->get_plugin_generator('core_competency'); $this->assertEquals(0, competency_framework::count_records()); $framework = $lpg->create_framework(); $framework = $lpg->create_framework(); $this->assertEquals(2, competency_framework::count_records()); $this->assertInstanceOf('\\core_competency\\competency_framework', $framework); }