Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
#7549 Compare This branch is even with staging.

Merge pull request #7555 from wilsonge/jerrorpagetests

Mock JDocument in JErrorPage unit test
latest commit 69c698aa93
@mbabker mbabker authored

README.md

Unit Testing Information

This document provides additional information on the folder structure within the unit tests and some basic information about the test suite

Folder Structure

  • core - Registered to Joomla's autoloader by the unit testing bootstrap file, contains all classes named Test* and primarily contains TestCase classes extending the PHPUnit Framework and classes to generate mock objects for several classes.
  • schema - This folder contains all SQL schema for setting up the environment for tests using TestCaseDatabase. The ddl.sql file is used by TestCaseDatabase to create a SQLite in-memory database which is destroyed at the end of the test cycle. The other SQL files are specific to each database vendor and require you to manually create the databases.
  • stubs - Contains miscellaneous test data used throughout the suite.
    • database - CSV files loaded by various tests to populate the database with test data
    • discover* - Stubs used with JLoaderTest
  • suites - The actual test classes
  • tmp - A temporary directory used for filesystem operations in the test suite
  • bootstrap.php - The testing bootstrap called when PHPUnit is run
Something went wrong with that request. Please try again.