Skip to content

Commit

Permalink
Add 20230701
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDPC committed Sep 4, 2023
1 parent ce21c69 commit 00cc1dd
Show file tree
Hide file tree
Showing 2 changed files with 171 additions and 0 deletions.
132 changes: 132 additions & 0 deletions data/yml/governance-arrangements/20230701.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
---
name: 'nswgov-clusters-agencies'
version: 20230701
supersedes: 20230503
created: '2023-07-01'
fromdate: '2023-07-01'
title: 'Governance Arrangements Chart from 1 July 2023'
author: 'The Cabinet Office NSW'
source: 'https://www.nsw.gov.au/departments-and-agencies/the-cabinet-office/resources/governance-arrangements-chart'
description: >
Please note: This chart contains information about Ministers, State-owned
corporations established under Schedule 5 to the State Owned Corporations Act
1989 (NSW), and those NSW Government agencies that are established under
Schedule 1 to the Government Sector Employment Act 2013 (NSW). There are a
range of other NSW statutory bodies and statutory positions that are
established under other Acts. Information on which portfolio statutory bodies
and positions holders are part of can be obtained by consulting the
Allocation of the Administration of Acts and the legislation that establishes
the statutory body or officer (available at www.legislation.nsw.gov.au). The
NSW legislation website is the primary source of information about the legal
structure of the NSW Government.
clusters:
'Premier and Cabinet':
departments:
- 'Premier''s Department'
- 'The Cabinet Office'
executive_agencies:
- 'Natural Resources Commission Staff Agency'
- 'Parliamentary Counsel''s Office'
separate_agencies:
- 'Ombudsman''s Office'
- 'Public Service Commission'
- 'New South Wales Electoral Commission Staff Agency'
- 'Office of the Law Enforcement Conduct Commission'
- 'Office of the Inspector of the Law Enforcement Conduct Commission'
- 'Independent Pricing and Regulatory Tribunal Staff Agency'
'Education':
departments:
- 'Department of Education'
other_services:
- 'Teaching Service'
separate_agencies:
- 'TAFE Commission (Senior Executives) Staff Agency'
- 'NSW Education Standards Authority Staff Agency'
'Environment and Planning':
departments:
- 'Department of Planning and Environment'
executive_agencies:
- 'NSW Reconstruction Authority Staff Agency'
separate_agencies:
- 'Office of the Independent Planning Commission'
- 'Environment Protection Authority Staff Agency'
corporations:
- 'Landcom'
- 'Essential Energy'
- 'Water NSW'
- 'Hunter Water Corporation'
- 'Sydney Water Corporation'
'Jobs and Tourism':
departments:
- 'Department of Enterprise, Investment and Trade'
executive_agencies:
- 'Destination NSW Staff Agency'
- 'Art Gallery of NSW Trust Staff Agency'
- 'Australian Museum Trust Staff Agency'
- 'Library Council of NSW Staff Agency'
- 'Trustees of the Museum of Applied Arts and Sciences Staff Agency'
- 'Sydney Opera House Trust Staff Agency'
- 'Museums of History NSW and State Records Authority NSW Staff Agency'
separate_agencies:
- 'Office of the Greyhound Welfare and Integrity Commission'
- 'Independent Liquor and Gaming Authority Staff Agency'
- 'NSW Independent Casino Commission Staff Agency'
'Treasury':
departments:
- 'Treasury'
executive_agencies:
- 'Infrastructure NSW Staff Agency'
- 'SAS Trustee Corporation Staff Agency'
'Health':
departments:
- 'Ministry of Health'
executive_agencies:
- 'Health Professional Councils Authority Office'
- 'Mental Health Commission Staff Agency'
other_services:
- 'NSW Health Service'
separate_agencies:
- 'Health Care Complaints Commission Staff Agency'
'Transport':
departments:
- 'Department of Transport'
other_services:
- 'Transport Service'
corporations:
- 'Newcastle Port Corporation (known as the Port Authority of New South Wales)'
- 'Transport Asset Holding Entity of New South Wales'
'Customer Service':
departments:
- 'Department of Customer Service'
executive_agencies:
- 'Service NSW'
separate_agencies:
- 'Information and Privacy Commission'
- 'Office of the Independent Review Officer'
'Communities and Justice':
departments:
- 'Department of Communities and Justice'
executive_agencies:
- 'Crown Solicitor''s Office'
- 'Fire and Rescue NSW'
- 'Office of the NSW Rural Fire Service'
- 'Office of the NSW State Emergency Service'
- 'Institute of Sport Staff Agency'
- 'Office of Sport'
- 'Multicultural NSW Staff Agency'
- 'Venues NSW Staff Agency'
other_services:
- 'NSW Police Force'
separate_agencies:
- 'Office of the Director of Public Prosecutions'
- 'Legal Aid Commission Staff Agency'
- 'NSW Crime Commission Staff Agency'
- 'Office of the Children''s Guardian'
- 'Office of the Ageing and Disability Commissioner'
'Regional NSW':
departments:
- 'Department of Regional NSW'
executive_agencies:
- 'Local Land Services Staff Agency'
corporations:
- 'Forestry Corporation'
39 changes: 39 additions & 0 deletions tests/v20230701Test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

namespace NSWDPC\GovernanceArrangements\Test;

require_once( dirname(__FILE__) . '/GovernanceArrangementsServiceTest.php' );

/**
* Test for v20230701
*/
class v20230701Test extends GovernanceArrangementsServiceTest {

/**
* @var float
*/
protected $dataVersion = 20230701;

/**
* @var int|null
*/
protected $totalClusters = 10;

public function testClusterDepartments() {
$data = $this->serviceInstance->getData();
$clusterData = $this->serviceInstance->getCluster('Premier and Cabinet');
$this->assertEquals(2, count($clusterData['departments']));
}

public function testClusterFromDepartment() {
$data = $this->serviceInstance->getData();
$clusterName = $this->serviceInstance->getClusterFromDepartment('Premier\'s Department');
$this->assertEquals('Premier and Cabinet', $clusterName);
}

public function testGetClusterFromAgency() {
$data = $this->serviceInstance->getData();
$cluster = $this->serviceInstance->getClusterFromAgency('Premier\'s Department');
$this->assertEquals('Premier and Cabinet', $cluster );
}
}

0 comments on commit 00cc1dd

Please sign in to comment.