GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing codeception.com — MongoDb - Codeception - Documentation Guides
Testomatio - Test Management for Codeception SearchMongoDbInstallationDescriptionWorks with MongoDb database. The most important function of this module is cleaning database before each test. To have your database properly cleaned you should configure it to access the database. In order to have your database populated with data you need a valid js file with data (of the same style which can be fed up to mongo binary) File can be generated by RockMongo export command You can also use directory, generated by tool or it’s archive (not available for Windows systems), generated by . Just put it in dir (by default) and specify path to it in config. Next time after database is cleared all your data will be restored from dump. The DB preparation should as following:
Connection is done by MongoDb driver, which is stored in Codeception\Lib\Driver namespace. Check out the driver if you get problems loading dumps and cleaning databases. HINT: This module can be used with Mongofill library which is Mongo client written in PHP without extension. Status
Please review the code of non-stable modules and provide patches if you have issues. Config
ActionsdontSeeInCollection
Checks if collection doesn’t contain an item. grabCollectionCount
Grabs the documents count from a collection grabFromCollection
Grabs a data from collection haveInCollection
Inserts data into collection seeElementIsArray
Asserts that an element in a collection exists and is an Array seeElementIsObject
Asserts that an element in a collection exists and is an Object seeInCollection
Checks if collection contains an item. seeNumElementsInCollection
Count number of records in a collection useDatabase
Specify the database to use
Module reference is taken from the source code. Help us to improve documentation. Edit module reference
Don't know how to write tests on your own? We will build or improve them for you.
Request a quote for official
enterprise
support or trainings
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |