Move unit tests to tests/unit/. Get the old still working UnitTests into a working state again. Updated composer.json with required-dev packages. Create a new folder tests/acceptance for Behat functional/acceptance testing. Add a first Feature draft of a Behat functional test for local login.
		
			
				
	
	
		
			24 lines
		
	
	
		
			543 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			543 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| use Behat\Behat\Context\Context;
 | |
| use Behat\Behat\Context\SnippetAcceptingContext;
 | |
| use Behat\Gherkin\Node\PyStringNode;
 | |
| use Behat\Gherkin\Node\TableNode;
 | |
| 
 | |
| /**
 | |
|  * Defines application features from the specific context.
 | |
|  */
 | |
| class AdminContext implements Context, SnippetAcceptingContext
 | |
| {
 | |
|     /**
 | |
|      * Initializes context.
 | |
|      *
 | |
|      * Every scenario gets its own context instance.
 | |
|      * You can also pass arbitrary arguments to the
 | |
|      * context constructor through behat.yml.
 | |
|      */
 | |
|     public function __construct()
 | |
|     {
 | |
|     }
 | |
| }
 |