Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 1.05 KB

context-extended-entity.md

File metadata and controls

49 lines (39 loc) · 1.05 KB

#Extended Entity Context

##Parent Entity Context

KnpLabs/FriendlyContexts

##Truncate Data

You just have to use the tag @truncate-data, it's faster than reset-schema that drop and re-create the schema of db. Truncate-data will only delete datas and not schema.

@truncate-data
Feature: My feature
...

Generate array for TableNode

  Given the following users:
    | firstname | lastname | infos                       |
    | George    | Abitbol  | eyes : blue, hat: of course |

Find one object

  Given the following users:
    | firstname | lastname |
    | George    | Abitbol  |
    | José      | Abitbol  |
  Then I should find 1 User like:
    | firstname |
    | José      |
  Then I should find 2 Users like:
    | lastname |
    | Abitbol  |

Assert no object

  Then I should not find 3 User like:
    | firsname |
    | José     |
  Then I should not find any User like:
    | firsname |
    | Michel   |