Open Journal Systems  3.3.0
BagPhpUseCaseTest Class Reference
Inheritance diagram for BagPhpUseCaseTest:

Public Member Functions

 setUp ()
 
 tearDown ()
 
 testBagConsumer ()
 
 testBagProducer ()
 

Data Fields

 $to_rm
 

Detailed Description

This abuses the unit test framework to do some use case testing.

Definition at line 8 of file testusecases.php.

Member Function Documentation

◆ setUp()

BagPhpUseCaseTest::setUp ( )

Definition at line 17 of file testusecases.php.

◆ tearDown()

BagPhpUseCaseTest::tearDown ( )

Definition at line 22 of file testusecases.php.

◆ testBagConsumer()

BagPhpUseCaseTest::testBagConsumer ( )

This is the use case for consuming a bag from someone else. The user does these actions:

  1. Open the bag;
  2. Validate the downloaded contents;
  3. Fetch on-line items in the bag;
  4. Validate the bag's contents; and
  5. Copy items from the bag onto the local disk.

Definition at line 125 of file testusecases.php.

◆ testBagProducer()

BagPhpUseCaseTest::testBagProducer ( )

This is a use case for creating and populating a new bag. The user does these actions:

  1. Create a new bag;
  2. Add files to the bag;
  3. Add fetch entries;
  4. Update the bag; and
  5. Package the bag.

Definition at line 42 of file testusecases.php.

Field Documentation

◆ $to_rm

BagPhpUseCaseTest::$to_rm

Definition at line 10 of file testusecases.php.


The documentation for this class was generated from the following file: