Commit c8eaf6e5 authored by jungle's avatar jungle Committed by jungle

Issue #2998184 by jungle, alonaoneill, Suresh Prabhu Parkala, volkswagenchick,...

Issue #2998184 by jungle, alonaoneill, Suresh Prabhu Parkala, volkswagenchick, jcnventura: Fix typos involving in DropzoneJS/dropzonejs
parent 1aac0607
......@@ -55,7 +55,7 @@ class UploadController extends ControllerBase {
}
/**
* Handles DropzoneJs uploads.
* Handles DropzoneJS uploads.
*/
public function handleUploads() {
$file = $this->request->files->get('file');
......
......@@ -6,7 +6,7 @@ use Drupal\Core\Session\AccountProxyInterface;
use Drupal\file\FileInterface;
/**
* Provides an interface for classes that save DropzoneJs uploads.
* Provides an interface for classes that save DropzoneJS uploads.
*/
interface DropzoneJsUploadSaveInterface {
......
......@@ -23,7 +23,7 @@ use Drupal\Core\Url;
* Will be visible inside the upload area.
* - #max_filesize (string)
* Used by dropzonejs and expressed in number + unit (i.e. 1.1M) This will be
* converted to a form that DropzoneJs understands. See:
* converted to a form that DropzoneJS understands. See:
* http://www.dropzonejs.com/#config-maxFilesize
* - #extensions (string)
* A string of valid extensions separated by a space.
......
name: 'DropzoneJs Test'
name: 'DropzoneJS Test'
type: module
description: 'Support module for DropzoneJs tests.'
description: 'Support module for DropzoneJS tests.'
package: Testing
version: VERSION
dependencies:
......
......@@ -22,10 +22,10 @@ class DropzoneJsTestForm extends FormBase {
*/
public function buildForm(array $form, FormStateInterface $form_state) {
$form['dropzonejs'] = [
'#title' => $this->t('DropzoneJs element'),
'#title' => $this->t('DropzoneJS element'),
'#type' => 'dropzonejs',
'#required' => TRUE,
'#dropzone_description' => 'DropzoneJs description',
'#dropzone_description' => 'DropzoneJS description',
'#max_filesize' => '1M',
'#extensions' => 'jpg png',
];
......
......@@ -7,9 +7,9 @@ use Drupal\user\Entity\Role;
use Drupal\user\RoleInterface;
/**
* Tests related to the dropzoneJs element.
* Tests related to the DropzoneJS element.
*
* @group DropzoneJs
* @group dropzonejs
*/
class DropzoneJsElementTest extends KernelTestBase {
......@@ -49,8 +49,8 @@ class DropzoneJsElementTest extends KernelTestBase {
$xpath_base = "//div[contains(@class, 'form-item-dropzonejs')]";
// Label.
$this->assertEmpty($this->xpath("$xpath_base/label[text()='Not DropzoneJs element']"));
$this->assertNotEmpty($this->xpath("$xpath_base/label[text()='DropzoneJs element']"));
$this->assertEmpty($this->xpath("$xpath_base/label[text()='Not DropzoneJS element']"));
$this->assertNotEmpty($this->xpath("$xpath_base/label[text()='DropzoneJS element']"));
// Element where dropzonejs is attached to.
$this->assertNotEmpty($this->xpath("$xpath_base/div[contains(@class, 'dropzone-enable')]"));
// Uploaded files input.
......
......@@ -11,9 +11,9 @@ use Symfony\Component\HttpFoundation\Request;
use Drupal\language\Entity\ConfigurableLanguage;
/**
* Tests dropzoneJs upload controller.
* Tests DropzoneJS upload controller.
*
* @group DropzoneJs
* @group dropzonejs
*/
class DropzoneJsUploadControllerTest extends KernelTestBase {
......@@ -43,7 +43,7 @@ class DropzoneJsUploadControllerTest extends KernelTestBase {
*
* @var string
*/
protected $testfileData = 'DropzoneJs test file data';
protected $testfileData = 'DropzoneJS test file data';
/**
* Modules to enable.
......@@ -68,7 +68,7 @@ class DropzoneJsUploadControllerTest extends KernelTestBase {
}
/**
* Test that dropzoneJs correctly handles uploads.
* Test that DropzoneJS correctly handles uploads.
*/
public function testDropzoneJsUploadController() {
$this->container->get('router.builder')->rebuild();
......@@ -99,7 +99,7 @@ class DropzoneJsUploadControllerTest extends KernelTestBase {
}
/**
* Tests that dropzoneJs ignores filename transliteration.
* Tests that DropzoneJS ignores filename transliteration.
*/
public function testIgnoreTransliteration() {
$this->container->get('router.builder')->rebuild();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment