-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathcore-version.feature
More file actions
39 lines (33 loc) · 1020 Bytes
/
core-version.feature
File metadata and controls
39 lines (33 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Feature: Find version for WordPress install
Scenario: Verify core version
Given a WP install
And I run `wp core download --version=4.4.2 --force`
When I run `wp core version`
Then STDOUT should be:
"""
4.4.2
"""
When I run `wp core version --extra`
Then STDOUT should be:
"""
WordPress version: 4.4.2
Database revision: 35700
TinyMCE version: 4.208 (4208-20151113)
Package language: en_US
"""
Scenario: Installing WordPress for a non-default locale and verify core extended version information.
Given an empty directory
And an empty cache
When I run `wp core download --version=4.4.2 --locale=de_DE`
Then STDOUT should contain:
"""
Success: WordPress downloaded.
"""
When I run `wp core version --extra`
Then STDOUT should be:
"""
WordPress version: 4.4.2
Database revision: 35700
TinyMCE version: 4.208 (4208-20151113)
Package language: de_DE
"""