Renamed app
This commit is contained in:
parent
344d62d7dd
commit
7c551bd581
9
.idea/appsautoupdater.iml
Normal file
9
.idea/appsautoupdater.iml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
4
.idea/encodings.xml
Normal file
4
.idea/encodings.xml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
|
||||||
|
</project>
|
6
.idea/misc.xml
Normal file
6
.idea/misc.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="JavaScriptSettings">
|
||||||
|
<option name="languageLevel" value="ES6" />
|
||||||
|
</component>
|
||||||
|
</project>
|
8
.idea/modules.xml
Normal file
8
.idea/modules.xml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/appsautoupdater.iml" filepath="$PROJECT_DIR$/.idea/appsautoupdater.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
204
.idea/workspace.xml
Normal file
204
.idea/workspace.xml
Normal file
@ -0,0 +1,204 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ChangeListManager">
|
||||||
|
<list default="true" id="367d3a25-d88d-4f86-9b34-4a1f3b464a73" name="Default Changelist" comment="">
|
||||||
|
<change beforePath="$PROJECT_DIR$/.travis.yml" beforeDir="false" afterPath="$PROJECT_DIR$/.travis.yml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/Makefile" beforeDir="false" afterPath="$PROJECT_DIR$/Makefile" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/appinfo/info.xml" beforeDir="false" afterPath="$PROJECT_DIR$/appinfo/info.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/appinfo/routes.php" beforeDir="false" afterPath="$PROJECT_DIR$/appinfo/routes.php" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/build/artifacts/appstore/applicationsautoupdater.tar.gz" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/build/artifacts/source/applicationsautoupdater.tar.gz" beforeDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/lib/Controller/AppsAutoUpdateController.php" beforeDir="false" afterPath="$PROJECT_DIR$/lib/Controller/AppsAutoUpdateController.php" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/lib/Cron/AppsAutoUpdateTask.php" beforeDir="false" afterPath="$PROJECT_DIR$/lib/Cron/AppsAutoUpdateTask.php" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/tests/Integration/AppTest.php" beforeDir="false" afterPath="$PROJECT_DIR$/tests/Integration/AppTest.php" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/tests/Unit/Controller/PageControllerTest.php" beforeDir="false" afterPath="$PROJECT_DIR$/tests/Unit/Controller/PageControllerTest.php" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/tests/bootstrap.php" beforeDir="false" afterPath="$PROJECT_DIR$/tests/bootstrap.php" afterDir="false" />
|
||||||
|
</list>
|
||||||
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||||
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||||
|
</component>
|
||||||
|
<component name="ComposerSettings" synchronizationState="SYNCHRONIZE">
|
||||||
|
<pharConfigPath>$PROJECT_DIR$/composer.json</pharConfigPath>
|
||||||
|
</component>
|
||||||
|
<component name="FileEditorManager">
|
||||||
|
<leaf>
|
||||||
|
<file pinned="false" current-in-tab="false">
|
||||||
|
<entry file="file://$PROJECT_DIR$/appinfo/info.xml">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="300">
|
||||||
|
<caret line="20" selection-start-line="20" selection-end-line="20" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
<file pinned="false" current-in-tab="true">
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/Cron/AppsAutoUpdateTask.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor" />
|
||||||
|
</entry>
|
||||||
|
</file>
|
||||||
|
</leaf>
|
||||||
|
</component>
|
||||||
|
<component name="FindInProjectRecents">
|
||||||
|
<findStrings>
|
||||||
|
<find>applicationsautoupdater</find>
|
||||||
|
<find>ApplicationsAutoUpdater</find>
|
||||||
|
</findStrings>
|
||||||
|
<replaceStrings>
|
||||||
|
<replace>appsautoupdater</replace>
|
||||||
|
<replace>AppsAutoUpdater</replace>
|
||||||
|
</replaceStrings>
|
||||||
|
<dirStrings>
|
||||||
|
<dir>$PROJECT_DIR$</dir>
|
||||||
|
</dirStrings>
|
||||||
|
</component>
|
||||||
|
<component name="Git.Settings">
|
||||||
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
|
</component>
|
||||||
|
<component name="IdeDocumentHistory">
|
||||||
|
<option name="CHANGED_PATHS">
|
||||||
|
<list>
|
||||||
|
<option value="$PROJECT_DIR$/appinfo/info.xml" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="ProjectFrameBounds" extendedState="6">
|
||||||
|
<option name="width" value="1680" />
|
||||||
|
<option name="height" value="1050" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectView">
|
||||||
|
<navigator proportions="" version="1">
|
||||||
|
<foldersAlwaysOnTop value="true" />
|
||||||
|
</navigator>
|
||||||
|
<panes>
|
||||||
|
<pane id="PackagesPane" />
|
||||||
|
<pane id="ProjectPane">
|
||||||
|
<subPane>
|
||||||
|
<expand>
|
||||||
|
<path>
|
||||||
|
<item name="appsautoupdater" type="b2602c69:ProjectViewProjectNode" />
|
||||||
|
<item name="appsautoupdater" type="462c0819:PsiDirectoryNode" />
|
||||||
|
</path>
|
||||||
|
</expand>
|
||||||
|
<select />
|
||||||
|
</subPane>
|
||||||
|
</pane>
|
||||||
|
<pane id="Scope" />
|
||||||
|
</panes>
|
||||||
|
</component>
|
||||||
|
<component name="PropertiesComponent">
|
||||||
|
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||||
|
<property name="android.sdk.path" value="$USER_HOME$/Library/Android/sdk" />
|
||||||
|
<property name="aspect.path.notification.shown" value="true" />
|
||||||
|
<property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1548771220511" />
|
||||||
|
<property name="go.gopath.indexing.explicitly.defined" value="true" />
|
||||||
|
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
||||||
|
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
|
||||||
|
<property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
|
||||||
|
<property name="show.migrate.to.gradle.popup" value="false" />
|
||||||
|
</component>
|
||||||
|
<component name="RunDashboard">
|
||||||
|
<option name="ruleStates">
|
||||||
|
<list>
|
||||||
|
<RuleState>
|
||||||
|
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
||||||
|
</RuleState>
|
||||||
|
<RuleState>
|
||||||
|
<option name="name" value="StatusDashboardGroupingRule" />
|
||||||
|
</RuleState>
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="SvnConfiguration">
|
||||||
|
<configuration />
|
||||||
|
</component>
|
||||||
|
<component name="TaskManager">
|
||||||
|
<task active="true" id="Default" summary="Default task">
|
||||||
|
<changelist id="367d3a25-d88d-4f86-9b34-4a1f3b464a73" name="Default Changelist" comment="" />
|
||||||
|
<created>1548770653075</created>
|
||||||
|
<option name="number" value="Default" />
|
||||||
|
<option name="presentableId" value="Default" />
|
||||||
|
<updated>1548770653075</updated>
|
||||||
|
<workItem from="1548770654839" duration="226000" />
|
||||||
|
</task>
|
||||||
|
<servers />
|
||||||
|
</component>
|
||||||
|
<component name="TimeTrackingManager">
|
||||||
|
<option name="totallyTimeSpent" value="226000" />
|
||||||
|
</component>
|
||||||
|
<component name="ToolWindowManager">
|
||||||
|
<frame x="0" y="23" width="1680" height="1027" extended-state="6" />
|
||||||
|
<layout>
|
||||||
|
<window_info id="Designer" />
|
||||||
|
<window_info id="Image Layers" />
|
||||||
|
<window_info id="UI Designer" />
|
||||||
|
<window_info id="Favorites" side_tool="true" />
|
||||||
|
<window_info id="Capture Tool" />
|
||||||
|
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24969475" />
|
||||||
|
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
||||||
|
<window_info anchor="bottom" id="Terminal" />
|
||||||
|
<window_info anchor="bottom" id="Event Log" side_tool="true" />
|
||||||
|
<window_info anchor="bottom" id="Statistic" />
|
||||||
|
<window_info anchor="bottom" id="Database Changes" />
|
||||||
|
<window_info anchor="bottom" id="Version Control" />
|
||||||
|
<window_info anchor="bottom" id="Flutter Performance" side_tool="true" />
|
||||||
|
<window_info anchor="bottom" id="Docker" />
|
||||||
|
<window_info anchor="bottom" id="Message" order="0" />
|
||||||
|
<window_info anchor="bottom" id="Find" order="1" />
|
||||||
|
<window_info anchor="bottom" id="Run" order="2" />
|
||||||
|
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
||||||
|
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
||||||
|
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
||||||
|
<window_info anchor="bottom" id="TODO" order="6" />
|
||||||
|
<window_info anchor="right" id="Maven" />
|
||||||
|
<window_info anchor="right" id="Palette" />
|
||||||
|
<window_info anchor="right" id="Capture Analysis" />
|
||||||
|
<window_info anchor="right" id="Mongo Explorer" />
|
||||||
|
<window_info anchor="right" id="Database" />
|
||||||
|
<window_info anchor="right" id="Flutter Outline" />
|
||||||
|
<window_info anchor="right" id="Flutter Inspector" />
|
||||||
|
<window_info anchor="right" id="Drawable Viewer" />
|
||||||
|
<window_info anchor="right" id="Material Palette" />
|
||||||
|
<window_info anchor="right" id="Palette	" />
|
||||||
|
<window_info anchor="right" id="Theme Preview" />
|
||||||
|
<window_info anchor="right" id="SciView" />
|
||||||
|
<window_info anchor="right" id="Consul" />
|
||||||
|
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
||||||
|
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
||||||
|
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
||||||
|
</layout>
|
||||||
|
</component>
|
||||||
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
|
<option name="version" value="1" />
|
||||||
|
</component>
|
||||||
|
<component name="editorHistoryManager">
|
||||||
|
<entry file="file://$PROJECT_DIR$/appinfo/info.xml">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state relative-caret-position="300">
|
||||||
|
<caret line="20" selection-start-line="20" selection-end-line="20" />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/Cron/AppsAutoUpdateTask.php">
|
||||||
|
<provider selected="true" editor-type-id="text-editor" />
|
||||||
|
</entry>
|
||||||
|
</component>
|
||||||
|
<component name="masterDetails">
|
||||||
|
<states>
|
||||||
|
<state key="ProjectJDKs.UI">
|
||||||
|
<settings>
|
||||||
|
<last-edited>11</last-edited>
|
||||||
|
<splitter-proportions>
|
||||||
|
<option name="proportions">
|
||||||
|
<list>
|
||||||
|
<option value="0.2" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</splitter-proportions>
|
||||||
|
</settings>
|
||||||
|
</state>
|
||||||
|
</states>
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -35,7 +35,7 @@ before_install:
|
|||||||
# install core
|
# install core
|
||||||
- cd ../
|
- cd ../
|
||||||
- git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b $CORE_BRANCH nextcloud
|
- git clone https://github.com/nextcloud/server.git --recursive --depth 1 -b $CORE_BRANCH nextcloud
|
||||||
- mv "$TRAVIS_BUILD_DIR" nextcloud/apps/applicationsautoupdater
|
- mv "$TRAVIS_BUILD_DIR" nextcloud/apps/appsautoupdater
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- if [[ "$DB" == 'pgsql' ]]; then createuser -U travis -s oc_autotest; fi
|
- if [[ "$DB" == 'pgsql' ]]; then createuser -U travis -s oc_autotest; fi
|
||||||
@ -45,9 +45,9 @@ before_script:
|
|||||||
- cd nextcloud
|
- cd nextcloud
|
||||||
- mkdir data
|
- mkdir data
|
||||||
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
|
- ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
|
||||||
- ./occ app:enable applicationsautoupdater
|
- ./occ app:enable appsautoupdater
|
||||||
- php -S localhost:8080 &
|
- php -S localhost:8080 &
|
||||||
- cd apps/applicationsautoupdater
|
- cd apps/appsautoupdater
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
||||||
|
4
Makefile
4
Makefile
@ -128,8 +128,7 @@ source:
|
|||||||
appstore:
|
appstore:
|
||||||
rm -rf $(appstore_build_directory)
|
rm -rf $(appstore_build_directory)
|
||||||
mkdir -p $(appstore_build_directory)
|
mkdir -p $(appstore_build_directory)
|
||||||
tar cvzf $(appstore_package_name).tar.gz ../$(app_name) \
|
tar cvzf $(appstore_package_name).tar.gz --exclude-vcs \
|
||||||
--exclude-vcs \
|
|
||||||
--exclude="../$(app_name)/build" \
|
--exclude="../$(app_name)/build" \
|
||||||
--exclude="../$(app_name)/tests" \
|
--exclude="../$(app_name)/tests" \
|
||||||
--exclude="../$(app_name)/Makefile" \
|
--exclude="../$(app_name)/Makefile" \
|
||||||
@ -150,6 +149,7 @@ appstore:
|
|||||||
--exclude="../$(app_name)/protractor\.*" \
|
--exclude="../$(app_name)/protractor\.*" \
|
||||||
--exclude="../$(app_name)/.*" \
|
--exclude="../$(app_name)/.*" \
|
||||||
--exclude="../$(app_name)/js/.*" \
|
--exclude="../$(app_name)/js/.*" \
|
||||||
|
../$(app_name)
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: composer
|
test: composer
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
|
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
|
||||||
<id>applicationsautoupdater</id>
|
<id>appsautoupdater</id>
|
||||||
<name>Applications Auto Updater</name>
|
<name>Applications Auto Updater</name>
|
||||||
<summary>Apllications auto updater</summary>
|
<summary>Apllications auto updater</summary>
|
||||||
<description><![CDATA[Update applications automatically]]></description>
|
<description><![CDATA[Update applications automatically]]></description>
|
||||||
<version>0.0.1</version>
|
<version>0.0.1</version>
|
||||||
<licence>agpl</licence>
|
<licence>agpl</licence>
|
||||||
<author mail="adphi.apps@gmail.com" >Adphi Apps</author>
|
<author mail="adphi.apps@gmail.com" >Adphi Apps</author>
|
||||||
<namespace>ApplicationsAutoUpdater</namespace>
|
<namespace>AppsAutoUpdater</namespace>
|
||||||
<category>tools</category>
|
<category>tools</category>
|
||||||
<bugs>https://git.adphi.net/Adphi/ApplicationsAutoUpdater/issues</bugs>
|
<bugs>https://git.adphi.net/Adphi/AppsAutoUpdater/issues</bugs>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<nextcloud min-version="13" max-version="15"/>
|
<nextcloud min-version="13" max-version="15"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<background-jobs>
|
<background-jobs>
|
||||||
<job>OCA\ApplicationsAutoUpdater\Cron\AppsAutoUpdateTask</job>
|
<job>OCA\AppsAutoUpdater\Cron\AppsAutoUpdateTask</job>
|
||||||
</background-jobs>
|
</background-jobs>
|
||||||
</info>
|
</info>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/**
|
/**
|
||||||
* Create your routes in here. The name is the lowercase name of the controller
|
* Create your routes in here. The name is the lowercase name of the controller
|
||||||
* without the controller part, the stuff after the hash is the method.
|
* without the controller part, the stuff after the hash is the method.
|
||||||
* e.g. page#index -> OCA\ApplicationsAutoUpdater\Controller\PageController->index()
|
* e.g. page#index -> OCA\AppsAutoUpdater\Controller\PageController->index()
|
||||||
*
|
*
|
||||||
* The controller class has to be registered in the application.php file since
|
* The controller class has to be registered in the application.php file since
|
||||||
* it's instantiated in there
|
* it's instantiated in there
|
||||||
|
BIN
build/artifacts/appstore/appautoupdater.tar.gz
Normal file
BIN
build/artifacts/appstore/appautoupdater.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
build/artifacts/source/appautoupdater.tar.gz
Normal file
BIN
build/artifacts/source/appautoupdater.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace OCA\ApplicationsAutoUpdater\Controller;
|
namespace OCA\AppsAutoUpdater\Controller;
|
||||||
|
|
||||||
use OCP\IRequest;
|
use OCP\IRequest;
|
||||||
use OCP\AppFramework\Http\TemplateResponse;
|
use OCP\AppFramework\Http\TemplateResponse;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
* Time: 15:18
|
* Time: 15:18
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace OCA\ApplicationsAutoUpdater\Cron;
|
namespace OCA\AppsAutoUpdater\Cron;
|
||||||
|
|
||||||
|
|
||||||
use OC\BackgroundJob\TimedJob;
|
use OC\BackgroundJob\TimedJob;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace OCA\ApplicationsAutoUpdater\Tests\Integration\Controller;
|
namespace OCA\AppsAutoUpdater\Tests\Integration\Controller;
|
||||||
|
|
||||||
use OCP\AppFramework\App;
|
use OCP\AppFramework\App;
|
||||||
use Test\TestCase;
|
use Test\TestCase;
|
||||||
@ -17,13 +17,13 @@ class AppTest extends TestCase {
|
|||||||
|
|
||||||
public function setUp() {
|
public function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$app = new App('applicationsautoupdater');
|
$app = new App('appsautoupdater');
|
||||||
$this->container = $app->getContainer();
|
$this->container = $app->getContainer();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testAppInstalled() {
|
public function testAppInstalled() {
|
||||||
$appManager = $this->container->query('OCP\App\IAppManager');
|
$appManager = $this->container->query('OCP\App\IAppManager');
|
||||||
$this->assertTrue($appManager->isInstalled('applicationsautoupdater'));
|
$this->assertTrue($appManager->isInstalled('appsautoupdater'));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace OCA\ApplicationsAutoUpdater\Tests\Unit\Controller;
|
namespace OCA\AppsAutoUpdater\Tests\Unit\Controller;
|
||||||
|
|
||||||
use PHPUnit_Framework_TestCase;
|
use PHPUnit_Framework_TestCase;
|
||||||
|
|
||||||
use OCP\AppFramework\Http\TemplateResponse;
|
use OCP\AppFramework\Http\TemplateResponse;
|
||||||
|
|
||||||
use OCA\ApplicationsAutoUpdater\Controller\AppsAutoUpdateController;
|
use OCA\AppsAutoUpdater\Controller\AppsAutoUpdateController;
|
||||||
|
|
||||||
|
|
||||||
class PageControllerTest extends PHPUnit_Framework_TestCase {
|
class PageControllerTest extends PHPUnit_Framework_TestCase {
|
||||||
@ -17,7 +17,7 @@ class PageControllerTest extends PHPUnit_Framework_TestCase {
|
|||||||
$request = $this->getMockBuilder('OCP\IRequest')->getMock();
|
$request = $this->getMockBuilder('OCP\IRequest')->getMock();
|
||||||
|
|
||||||
$this->controller = new AppsAutoUpdateController(
|
$this->controller = new AppsAutoUpdateController(
|
||||||
'applicationsautoupdater', $request, $this->userId
|
'appsautoupdater', $request, $this->userId
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ require_once __DIR__.'/../../../lib/base.php';
|
|||||||
// Fix for "Autoload path not allowed: .../tests/lib/testcase.php"
|
// Fix for "Autoload path not allowed: .../tests/lib/testcase.php"
|
||||||
\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
|
\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests');
|
||||||
|
|
||||||
// Fix for "Autoload path not allowed: .../applicationsautoupdater/tests/testcase.php"
|
// Fix for "Autoload path not allowed: .../appsautoupdater/tests/testcase.php"
|
||||||
\OC_App::loadApp('applicationsautoupdater');
|
\OC_App::loadApp('appsautoupdater');
|
||||||
|
|
||||||
if(!class_exists('PHPUnit_Framework_TestCase')) {
|
if(!class_exists('PHPUnit_Framework_TestCase')) {
|
||||||
require_once('PHPUnit/Autoload.php');
|
require_once('PHPUnit/Autoload.php');
|
||||||
|
Loading…
Reference in New Issue
Block a user