note
	description: "Summary description for {ABSTRACT_DB_TEST}."
	date: "$Date: 2015-06-18 05:26:23 -0700 (Thu, 18 Jun 2015) $"
	revision: "$Revision: 97484 $"

class
	ABSTRACT_DB_TEST


feature -- Database connection

	connection: DATABASE_CONNECTION_ODBC
			-- odbc database connection
		once
			create Result.login_with_connection_string ("Driver=SQLite3 ODBC Driver;Database=test_roc.db;LongNames=0;Timeout=1000;NoTXN=0;SyncPragma=NORMAL;StepAPI=0;")
--			create Result.make_basic ("test_roc.db")
		end

feature {NONE} -- Implementation

	storage: CMS_STORAGE
			-- node provider.
		once
			create {CMS_STORAGE_STORE_ODBC} Result.make_with_driver (connection, "sqlite3")
		end

feature {NONE} -- Fixture Factory: Users

	default_user: CMS_USER
		do
			Result := custom_user ("test", "password", "test@test.com")
		end

	custom_user (a_name, a_password, a_email: READABLE_STRING_32): CMS_USER
		do
			create Result.make (a_name)
			Result.set_password (a_password)
			Result.set_email (a_email)
		end

--feature {NONE} -- Fixture Factories: Nodes

--	default_node: CMS_NODE
--		do
--			Result := custom_node ("Default content", "default summary", "Default")
--		end

--	custom_node (a_content, a_summary, a_title: READABLE_STRING_32): CMS_PAGE
--		do
--			create Result.make (a_title)
--			Result.set_content (a_content, a_summary, Void)
--		end


end
