BEGIN;
    -- Load the TAP functions.
    CREATE EXTENSION pgtap;
    SET client_min_messages TO warning;

    -- Plan the tests.

    SELECT plan(8);

    -- Add data

    \i xt/data/42-pg/Base.sql

    -- Validate required tables

--    SELECT has_table('business');

    -- Validate required functions

    SELECT has_function('employee__save',ARRAY['integer','date','date','date','text','text','boolean','integer','text','boolean']);
    SELECT has_function('employee__get_user',ARRAY['integer']);
    SELECT has_function('employee__all_managers','{}'::text[]);
    SELECT has_function('employee__get',ARRAY['integer']);
    SELECT has_function('employee__search',ARRAY['integer','text','text[]','text','text','text','text','text','date','date','text','text','text','boolean']);
    SELECT has_function('employee__list_managers',ARRAY['integer']);
    SELECT has_function('employee_search',ARRAY['date','date','character varying','text','date','date','boolean']);
    SELECT has_function('employee__all_salespeople','{}'::text[]);

    -- Run tests

--    PREPARE test AS select ...;
--    SELECT results_eq('test',result,'Description');
--    DEALLOCATE test;

    -- Finish the tests and clean up.
    SELECT * FROM finish();

ROLLBACK;
