1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-17 14:18:24 +01:00

[ticket/12962] Add facebook/webdriver dependency

Create a new composer.json for tests dir and add
facebook/webdriver dependency

PHPBB3-12962
This commit is contained in:
Dhruv 2014-09-21 12:52:53 +05:30
parent a1dff65cd1
commit 77d52982c8
4 changed files with 92 additions and 1 deletions

1
.gitignore vendored
View File

@ -21,3 +21,4 @@
/tests/phpbb_unit_tests.sqlite*
/tests/test_config*.php
/tests/tmp/*
/tests/vendor

24
tests/composer.json Normal file
View File

@ -0,0 +1,24 @@
{
"name": "phpbb/phpbb",
"description": "phpBB Forum Software application",
"type": "project",
"keywords": ["phpbb", "forum"],
"homepage": "https://www.phpbb.com",
"license": "GPL-2.0",
"authors": [
{
"name": "phpBB Limited",
"email": "operations@phpbb.com",
"homepage": "https://www.phpbb.com/go/authors"
}
],
"support": {
"issues": "https://tracker.phpbb.com",
"forum": "https://www.phpbb.com/community/",
"wiki": "https://wiki.phpbb.com",
"irc": "irc://irc.freenode.org/phpbb"
},
"require-dev": {
"facebook/webdriver": "dev-master"
}
}

66
tests/composer.lock generated Normal file
View File

@ -0,0 +1,66 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
],
"hash": "2affca245bd4946ca7acdf46f100af3c",
"packages": [
],
"packages-dev": [
{
"name": "facebook/webdriver",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/facebook/php-webdriver.git",
"reference": "b6e002e5bf811a8edba393ce6872322c1b7cf796"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/facebook/php-webdriver/zipball/b6e002e5bf811a8edba393ce6872322c1b7cf796",
"reference": "b6e002e5bf811a8edba393ce6872322c1b7cf796",
"shasum": ""
},
"require": {
"php": ">=5.3.19"
},
"require-dev": {
"phpdocumentor/phpdocumentor": "2.*",
"phpunit/phpunit": "3.7.*"
},
"type": "library",
"autoload": {
"classmap": [
"lib/"
]
},
"notification-url": "http://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"description": "A php client for WebDriver",
"homepage": "https://github.com/facebook/php-webdriver",
"keywords": [
"facebook",
"php",
"selenium",
"webdriver"
],
"time": "2014-08-05 02:55:46"
}
],
"aliases": [
],
"minimum-stability": "stable",
"stability-flags": {
"facebook/webdriver": 20
},
"platform": [
],
"platform-dev": [
]
}

View File

@ -10,7 +10,7 @@
* the docs/CREDITS.txt file.
*
*/
require_once __DIR__ . '/../../phpBB/vendor/facebook/webdriver/lib/__init__.php';
require_once __DIR__ . '/../vendor/facebook/webdriver/lib/__init__.php';
require_once __DIR__ . '/../../phpBB/includes/functions_install.php';
class phpbb_ui_test_case extends phpbb_test_case