Skip to content

Commit

Permalink
#35: Remove uninstall tests
Browse files Browse the repository at this point in the history
Uninstall is broken at the moment and requires more
work in ticket #36
  • Loading branch information
Steven Rombauts committed Sep 25, 2017
1 parent f208981 commit d569853
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ sudo: false
php:
- 7.1

addons:
mariadb: '10.1'
services:
- mysql

git:
depth: 999999 # We can't use a shallow clone for testing. See: https://github.com/travis-ci/travis-ci/issues/4942#issuecomment-159132444
Expand Down
13 changes: 0 additions & 13 deletions _travis/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,3 @@ grep -q "echo 'Hello World\!'" $DOCUMENTROOT/testsite/administrator/components/c
COUNT=$(mysql -uroot -s -N -e "SELECT COUNT(extension_id) FROM sites_testsite.j_extensions WHERE element = 'com_helloworld';")
echo "Matched $COUNT rows\n"
[ $COUNT -gt 0 ] && true || false

echo "** Uninstalling test extension"
composer remove -v --no-update --working-dir=$DOCUMENTROOT/testsite --no-interaction joomlatools/composer-helloworld

# Verify if component file has been removed
[ ! -f $DOCUMENTROOT/testsite/administrator/components/com_helloworld/helloworld.php ] && true || false

# Ensure extensions table has been updated
COUNT=$(mysql -uroot -s -N -e "SELECT COUNT(extension_id) FROM sites_testsite.j_extensions WHERE element = 'com_helloworld';")
echo "Matched $COUNT rows\n"

[ $COUNT -eq 0 ] && true || false

0 comments on commit d569853

Please sign in to comment.