/** * Check authorization total items error */ function test_authorization_total_items_error() { envato_market()->api()->token = '12345'; $this->admin->authorization(); $this->assertEquals(array('error'), envato_market()->get_option('notices')); }